Class: Chef::Knife::Cloud::VcenterVmShow
- Inherits:
-
ServerShowCommand
- Object
- ServerShowCommand
- Chef::Knife::Cloud::VcenterVmShow
- Includes:
- 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 VcenterServiceOptions
Instance Method Details
#validate_params! ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/chef/knife/vcenter_vm_show.rb', line 41 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 |