Class: Chef::Knife::EsxTemplateList
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::EsxTemplateList
- Includes:
- ESXBase
- Defined in:
- lib/chef/knife/esx_template_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_template_list.rb', line 29 def run $stdout.sync = true table = table do |t| t.headings = %w{DISK_TEMPLATES} connection.list_templates.each do |tmpl| t << [File.basename(tmpl)] end end puts table end |