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

Inherits:
Base
  • Object
show all
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(barclamp)
  Command::Role::List.new(
    *command_params(
      barclamp: 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(barclamp, role)
  Command::Role::Show.new(
    *command_params(
      barclamp: barclamp,
      role: role
    )
  ).execute
rescue => e
  catch_errors(e)
end