class Chef::Knife::Cloud::OraclecloudOrchestrationShow
Public Instance Methods
execute_command()
click to toggle source
# File lib/chef/knife/oraclecloud_orchestration_show.rb, line 50 def execute_command orchestration = service.get_orchestration(@name_args.first) ui.msg(ui.color('Orchestration Summary', :bold)) service.orchestration_summary(orchestration) ui.msg('') orchestration.instances.each do |instance| ui.msg(ui.color("Instance #{instance.id}", :bold)) service.server_summary(instance) ui.msg('') end end
validate_params!()
click to toggle source
Calls superclass method
# File lib/chef/knife/oraclecloud_orchestration_show.rb, line 36 def validate_params! if @name_args.empty? ui.error('You must supply an Orchestration ID for an orchestration to display.') exit 1 end if @name_args.size > 1 ui.error('You may only supply one Orchestration ID.') exit 1 end super end