class Crowbar::Client::Command::Restricted::Ping
Implementation for the restricted ping command
Public Instance Methods
execute()
click to toggle source
# File lib/crowbar/client/command/restricted/ping.rb, line 31 def execute request.process do |request| case request.code when 200 say "Successfully pinged the administration server" else err request.parsed_response["error"] end end end
request()
click to toggle source
# File lib/crowbar/client/command/restricted/ping.rb, line 25 def request @request ||= Request::Restricted::Ping.new( args ) end