class Crowbar::Client::App::Restricted

A Thor based CLI wrapper for restricted commands

Public Instance Methods

allocate(name) click to toggle source
# File lib/crowbar/client/app/restricted.rb, line 32
def allocate(name)
  Command::Restricted::Allocate.new(
    *command_params(
      name: name
    )
  ).execute
rescue => e
  catch_errors(e)
end
ping() click to toggle source
# File lib/crowbar/client/app/restricted.rb, line 49
def ping
  Command::Restricted::Ping.new(
    *command_params
  ).execute
rescue => e
  catch_errors(e)
end
show(name) click to toggle source
# File lib/crowbar/client/app/restricted.rb, line 105
def show(name)
  Command::Restricted::Show.new(
    *command_params(
      name: name
    )
  ).execute
rescue => e
  catch_errors(e)
end
transition(name, state) click to toggle source
# File lib/crowbar/client/app/restricted.rb, line 123
def transition(name, state)
  Command::Restricted::Transition.new(
    *command_params(
      name: name,
      state: state
    )
  ).execute
rescue => e
  catch_errors(e)
end