Class: Crowbar::Client::App::Server

Inherits:
Base
  • Object
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

Constructor Details

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

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

#checkObject



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