Class: Crowbar::Client::App::Role
- Defined in:
- lib/crowbar/client/app/role.rb
Overview
A Thor based CLI wrapper for role commands
Instance Method Summary collapse
Methods inherited from Base
banner, handle_argument_error, #initialize
Constructor Details
This class inherits a constructor from Crowbar::Client::App::Base
Instance Method Details
#list(barclamp) ⇒ Object
72 73 74 75 76 77 78 79 80 |
# File 'lib/crowbar/client/app/role.rb', line 72 def list() Command::Role::List.new( *command_params( barclamp: ) ).execute rescue => e catch_errors(e) end |
#show(barclamp, role) ⇒ Object
130 131 132 133 134 135 136 137 138 139 |
# File 'lib/crowbar/client/app/role.rb', line 130 def show(, role) Command::Role::Show.new( *command_params( barclamp: , role: role ) ).execute rescue => e catch_errors(e) end |