class Chef::Knife::VsphereCustomizationList

Lists all customization specifications in the configured datacenter VsphereCustomizationlist extends the BaseVspherecommand

Public Instance Methods

run() click to toggle source

The main run method for customization_list

# File lib/chef/knife/vsphere_customization_list.rb, line 21
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