class Crowbar::Client::Command::Repository::Activate

Implementation for the repository activate command

Public Instance Methods

execute() click to toggle source
# File lib/crowbar/client/command/repository/activate.rb, line 31
def execute
  request.process do |request|
    case request.code
    when 200
      say "Successfully activated the repository"
    when 404
      err "Unknown repository or platform"
    else
      err request.parsed_response["error"]
    end
  end
end
request() click to toggle source
# File lib/crowbar/client/command/repository/activate.rb, line 25
def request
  @request ||= Request::Repository::Activate.new(
    args
  )
end