Class: Chef::Knife::Cloud::GoogleServerShow

Inherits:
ServerShowCommand
  • Object
show all
Includes:
GoogleServiceOptions, ServerShowOptions
Defined in:
lib/chef/knife/google_server_show.rb

Instance Method Summary collapse

Methods included from GoogleServiceOptions

included

Instance Method Details

#validate_params!Object



39
40
41
42
43
44
45
# File 'lib/chef/knife/google_server_show.rb', line 39

def validate_params!
  check_for_missing_config_values!(:gce_zone)
  raise "You must supply an instance name to display" if @name_args.empty?
  raise "You may only supply one instance name" if @name_args.size > 1

  super
end