Class: Chef::Knife::VsphereCustomizationList
- Inherits:
-
BaseVsphereCommand
- Object
- Chef::Knife
- BaseVsphereCommand
- Chef::Knife::VsphereCustomizationList
- Defined in:
- lib/chef/knife/vsphere_customization_list.rb
Overview
Lists all customization specifications in the configured datacenter
Instance Method Summary collapse
Methods inherited from BaseVsphereCommand
#choose_datastore, common_options, #datacenter, #fatal_exit, #find_all_in_folder, #find_datastore, #find_datastorecluster, #find_datastores_regex, #find_device, #find_folder, #find_in_folder, #find_network, #find_pool, #get_config, #get_path_to_object, #get_vm, #get_vms, #linux?, #password, #tcp_test_port, #tcp_test_port_vm, #traverse_folders_for_computeresources, #traverse_folders_for_dc, #traverse_folders_for_vm, #traverse_folders_for_vms, #vim_connection, #windows?
Methods inherited from Chef::Knife
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/chef/knife/vsphere_customization_list.rb', line 14 def run $stdout.sync = true vim = vim_connection csm = vim.serviceContent.customizationSpecManager csm.info.each do |c| puts "#{ui.color('Customization Name', :cyan)}: #{c.name}" end end |