class Crowbar::Client::Command::Interface::Disable

Implementation for the interface disable command

Public Instance Methods

execute() click to toggle source
# File lib/crowbar/client/command/interface/disable.rb, line 31
def execute
  request.process do |request|
    case request.code
    when 200
      say "Successfully disabled the interface"
    else
      err request.parsed_response["error"]
    end
  end
end
request() click to toggle source
# File lib/crowbar/client/command/interface/disable.rb, line 25
def request
  @request ||= Request::Interface::Disable.new(
    args
  )
end