Class: Chef::Knife::Cloud::VcenterVmShow
- Inherits:
-
ServerShowCommand
- Object
- ServerShowCommand
- Chef::Knife::Cloud::VcenterVmShow
- Includes:
- VcenterServiceHelpers, VcenterServiceOptions, ServerShowOptions
- Defined in:
- lib/chef/knife/vcenter_vm_show.rb
Overview
Extends the SeverShowCommand to do specific things for vCenter
Instance Method Summary collapse
Methods included from VcenterServiceHelpers
#check_for_missing_config_values!, #create_service_instance, #validate!, #verify_ssl?
Methods included from VcenterServiceOptions
Instance Method Details
#validate_params! ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/chef/knife/vcenter_vm_show.rb', line 37 def validate_params! if @name_args.empty? ui.error("You must supply the name of the virtual machine to display.") exit(1) if @name_args.empty? end if @name_args.size > 1 ui.error("You may only supply one virtual machine name") exit 1 end super end |