Class: Chef::Knife::VsphereCustomizationList

Inherits:
BaseVsphereCommand show all
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

#fatal_exit, #find_all_in_folder, #find_datastore, #find_folder, #find_in_folder, #find_network, #find_pool, get_common_options, #get_config, #get_vim_connection

Instance Method Details

#runObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/chef/knife/vsphere_customization_list.rb', line 15

def run

  $stdout.sync = true

  vim = get_vim_connection

  csm = vim.serviceContent.customizationSpecManager
  csm.info.each do |c|
    puts "#{ui.color("Customization Name", :cyan)}: #{c.name}"

  end

end