Class: Crowbar::Client::App::Reset

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

#nodesObject



48
49
50
51
52
53
54
# File 'lib/crowbar/client/app/reset.rb', line 48

def nodes
  Command::Reset::Nodes.new(
    *command_params
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end

#proposal(barclamp, proposal = nil) ⇒ Object



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

def proposal(barclamp, proposal = nil)
  Command::Reset::Proposal.new(
    *command_params(
      barclamp: barclamp,
      proposal: proposal
    )
  ).execute
rescue SimpleCatchableError => e
  err e.message, 1
end