Class: Crowbar::Client::App::Role

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/app/role.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Crowbar::Client::App::Base

Instance Method Details

#list(barclamp) ⇒ Object



69
70
71
72
73
74
75
76
77
# File 'lib/crowbar/client/app/role.rb', line 69

def list(barclamp)
  Command::Role::List.new(
    *command_params(
      barclamp: barclamp
    )
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end

#show(barclamp, role) ⇒ Object



127
128
129
130
131
132
133
134
135
136
# File 'lib/crowbar/client/app/role.rb', line 127

def show(barclamp, role)
  Command::Role::Show.new(
    *command_params(
      barclamp: barclamp,
      role: role
    )
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end