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

Inherits:
Base
  • Object
show all
Defined in:
lib/crowbar/client/app/server.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

#api(barclamp) ⇒ Object



29
30
31
32
33
34
35
36
37
# File 'lib/crowbar/client/app/server.rb', line 29

def api(barclamp)
  Command::Server::Api.new(
    *command_params(
      barclamp: barclamp
    )
  ).execute
rescue => e
  catch_errors(e)
end