Class: Crowbar::Client::App::Server
- Inherits:
-
Base
- Object
- Thor
- Base
- Crowbar::Client::App::Server
show all
- Defined in:
- lib/crowbar/client/app/server.rb
Overview
A Thor based CLI wrapper for server commands
Instance Method Summary
collapse
Methods inherited from Base
banner, handle_argument_error, #initialize
Instance Method Details
#api(barclamp) ⇒ Object
32
33
34
35
36
37
38
39
40
|
# File 'lib/crowbar/client/app/server.rb', line 32
def api(barclamp)
Command::Server::Api.new(
*command_params(
barclamp: barclamp
)
).execute
rescue => e
catch_errors(e)
end
|
#check ⇒ Object
87
88
89
90
91
92
93
|
# File 'lib/crowbar/client/app/server.rb', line 87
def check
Command::Server::Check.new(
*command_params
).execute
rescue => e
catch_errors(e)
end
|