20 lines
293 B
Ruby
20 lines
293 B
Ruby
|
module Lab
|
||
|
module Controllers
|
||
|
module WorkstationVixrController
|
||
|
|
||
|
def self.running_list
|
||
|
vm_list = `vmrun list`.split("\n")
|
||
|
vm_list.shift
|
||
|
|
||
|
return vm_list
|
||
|
end
|
||
|
|
||
|
def self.dir_list(basepath=nil)
|
||
|
vm_list = Find.find(basepath).select { |f| f =~ /\.vmx$/ }
|
||
|
|
||
|
return vm_list
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|