class Chef::Knife::PodnixServerDelete

Public Instance Methods

run() click to toggle source
# File lib/chef/knife/podnix_server_delete.rb, line 25
def run
@server_id = @name_args[0]
  if @server_id.nil?
    ui.error("You must specify a server_id")
    exit 1        
 else
 
  validate!
  @podnix = Podnix::API.new({:key => "#{config[:podnix_api_key]}"})
  po_server = @podnix.delete_server({:id => "#{@server_id}"})
end
end