Class: Chef::Knife::EsxTemplateImport
- Inherits:
-
Chef::Knife
- Object
- Chef::Knife
- Chef::Knife::EsxTemplateImport
- Includes:
- ESXBase
- Defined in:
- lib/chef/knife/esx_template_import.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_import.rb', line 29 def run $stdout.sync = true @name_args.each do |vm_name| if not File.exist?(vm_name) ui.error("The file #{vm_name} does not exist.") exit 1 end connection.import_template vm_name, :print_progress => true end end |