Class: Chef::Knife::Cloud::OraclecloudOrchestrationDelete

Inherits:
Command
  • Object
show all
Includes:
OraclecloudServiceHelpers, OraclecloudServiceOptions
Defined in:
lib/chef/knife/oraclecloud_orchestration_delete.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

#execute_commandObject



45
46
47
48
49
# File 'lib/chef/knife/oraclecloud_orchestration_delete.rb', line 45

def execute_command
  @name_args.each do |orchestration_id|
    service.delete_orchestration(orchestration_id)
  end
end

#validate_params!Object



36
37
38
39
40
41
42
43
# File 'lib/chef/knife/oraclecloud_orchestration_delete.rb', line 36

def validate_params!
  if @name_args.empty?
    ui.error('You must supply at least one Orchestration ID to delete.')
    exit 1
  end

  super
end