class Crowbar::Client::Command::Node::Transition
Implementation for the node transition command
Public Instance Methods
execute()
click to toggle source
# File lib/crowbar/client/command/node/transition.rb, line 31 def execute request.process do |request| case request.code when 200 say "Successfully transitioned to #{args.state}" 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/transition.rb, line 25 def request @request ||= Request::Node::Transition.new( args ) end