class Crowbar::Client::Command::Node::Delete
Implementation for the node delete command
Public Instance Methods
execute()
click to toggle source
# File lib/crowbar/client/command/node/delete.rb, line 31 def execute request.process do |request| case request.code when 200 say "Successfully triggered delete for #{args.name}" when 404 err "Node does not exist" else err request.parsed_response["error"] end end end
request()
click to toggle source
# File lib/crowbar/client/command/node/delete.rb, line 25 def request @request ||= Request::Node::Delete.new( args ) end