class Chef::Knife::Cloud::VcenterVmShow

Extends the SeverShowCommand to do specific things for vCenter

Public Instance Methods

validate_params!() click to toggle source
Calls superclass method
# 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