Class: Chef::Knife::Cloud::OraclecloudServerShow

Inherits:
ServerShowCommand
  • Object
show all
Includes:
OraclecloudServiceHelpers, OraclecloudServiceOptions, ServerShowOptions
Defined in:
lib/chef/knife/oraclecloud_server_show.rb

Instance Method Summary collapse

Methods included from OraclecloudServiceOptions

included

Methods included from OraclecloudServiceHelpers

#check_for_missing_config_values!, #create_service_instance, #verify_ssl?

Instance Method Details

#validate_params!Object



38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/chef/knife/oraclecloud_server_show.rb', line 38

def validate_params!
  if @name_args.empty?
    ui.error('You must supply an Instance ID for a server to display.')
    exit 1
  end

  if @name_args.size > 1
    ui.error('You may only supply one Instance ID.')
    exit 1
  end

  super
end