2011-01-19 21:23:29 +00:00
|
|
|
module Lab
|
|
|
|
module Controllers
|
|
|
|
module WorkstationController
|
|
|
|
|
2011-02-04 21:29:24 +00:00
|
|
|
def self.workstation_running_list
|
2011-01-19 21:23:29 +00:00
|
|
|
vm_list = `vmrun list`.split("\n")
|
|
|
|
vm_list.shift
|
|
|
|
|
|
|
|
return vm_list
|
|
|
|
end
|
|
|
|
|
2011-02-04 21:29:24 +00:00
|
|
|
def self.workstation_dir_list(basepath=nil)
|
2011-01-19 21:23:29 +00:00
|
|
|
vm_list = Find.find(basepath).select { |f| f =~ /\.vmx$/ }
|
|
|
|
|
|
|
|
return vm_list
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|