Class: Crowbar::Client::Command::Services::SetRestartFlag
- Includes:
- Mixin::Format
- Defined in:
- lib/crowbar/client/command/services/disable_restart.rb
Overview
Implementation for the List Restarts command
Instance Attribute Summary
Attributes inherited from Base
#args, #options, #stderr, #stdin, #stdout
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Crowbar::Client::Command::Base
Instance Method Details
#execute ⇒ Object
33 34 35 36 37 |
# File 'lib/crowbar/client/command/services/disable_restart.rb', line 33 def execute request.process do |request| err request.parsed_response["error"] if request.code != 200 end end |
#request ⇒ Object
27 28 29 30 31 |
# File 'lib/crowbar/client/command/services/disable_restart.rb', line 27 def request @request ||= Request::Services::SetRestartFlag.new( args ) end |