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