2011-01-19 21:23:29 +00:00
|
|
|
module Lab
|
|
|
|
module Controllers
|
|
|
|
module WorkstationController
|
|
|
|
|
2011-02-11 15:04:33 +00:00
|
|
|
def self.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-11 15:04:33 +00:00
|
|
|
def self.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
|