Class: Crowbar::Client::App::Proposal

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

#commit(barclamp, proposal) ⇒ Object



287
288
289
290
291
292
293
294
295
296
# File 'lib/crowbar/client/app/proposal.rb', line 287

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

#create(barclamp, proposal) ⇒ Object



180
181
182
183
184
185
186
187
188
189
# File 'lib/crowbar/client/app/proposal.rb', line 180

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

#delete(barclamp, proposal) ⇒ Object



249
250
251
252
253
254
255
256
257
258
# File 'lib/crowbar/client/app/proposal.rb', line 249

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

#dequeue(barclamp, proposal) ⇒ Object



268
269
270
271
272
273
274
275
276
277
# File 'lib/crowbar/client/app/proposal.rb', line 268

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

#edit(barclamp, proposal) ⇒ Object



230
231
232
233
234
235
236
237
238
239
# File 'lib/crowbar/client/app/proposal.rb', line 230

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

#list(barclamp) ⇒ Object



69
70
71
72
73
74
75
76
77
# File 'lib/crowbar/client/app/proposal.rb', line 69

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

#show(barclamp, proposal) ⇒ Object



130
131
132
133
134
135
136
137
138
139
# File 'lib/crowbar/client/app/proposal.rb', line 130

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