Class: Chef::Knife::EsxVmList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::EsxVmList
- Includes:
- ESXBase
- Defined in:
- lib/chef/knife/esx_vm_list.rb
Instance Method Summary collapse
Methods included from ESXBase
#connection, included, #locate_config_value
Instance Method Details
#run ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/chef/knife/esx_vm_list.rb', line 29 def run $stdout.sync = true vm_table = table do |t| t.headings = %w{NAME IPADDR POWER_STATE VMW_TOOLS} connection.virtual_machines.each do |vm| t << [vm.name, vm.ip_address, vm.power_state, vm.guest_info.vmware_tools_installed?] end end puts vm_table end |