class Chef::Knife::Cloud::OraclecloudServerDelete
Public Instance Methods
execute_command()
click to toggle source
overriding this method from knife-cloud so we can pull the instance label to pass to delete_from_chef rather than the resource ID
# File lib/chef/knife/oraclecloud_server_delete.rb, line 40 def execute_command @name_args.each do |instance_id| instance = service.get_server(instance_id) service.delete_server(instance_id) delete_from_chef(instance.label) end end