Class: Crowbar::Client::App::Node
- Inherits:
-
Base
- Object
- Thor
- Base
- Crowbar::Client::App::Node
show all
- Defined in:
- lib/crowbar/client/app/node.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#allocate(name) ⇒ Object
382
383
384
385
386
387
388
389
390
|
# File 'lib/crowbar/client/app/node.rb', line 382
def allocate(name)
Command::Node::Allocate.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#delete(name) ⇒ Object
238
239
240
241
242
243
244
245
246
|
# File 'lib/crowbar/client/app/node.rb', line 238
def delete(name)
Command::Node::Delete.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#hardware(name) ⇒ Object
202
203
204
205
206
207
208
209
210
|
# File 'lib/crowbar/client/app/node.rb', line 202
def hardware(name)
Command::Node::Hardware.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#identify(name) ⇒ Object
220
221
222
223
224
225
226
227
228
|
# File 'lib/crowbar/client/app/node.rb', line 220
def identify(name)
Command::Node::Identify.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#list ⇒ Object
125
126
127
128
129
130
131
|
# File 'lib/crowbar/client/app/node.rb', line 125
def list
Command::Node::List.new(
*command_params
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#powercycle(name) ⇒ Object
328
329
330
331
332
333
334
335
336
|
# File 'lib/crowbar/client/app/node.rb', line 328
def powercycle(name)
Command::Node::Powercycle.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#poweroff(name) ⇒ Object
346
347
348
349
350
351
352
353
354
|
# File 'lib/crowbar/client/app/node.rb', line 346
def poweroff(name)
Command::Node::Poweroff.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#poweron(name) ⇒ Object
364
365
366
367
368
369
370
371
372
|
# File 'lib/crowbar/client/app/node.rb', line 364
def poweron(name)
Command::Node::Poweron.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#reboot(name) ⇒ Object
310
311
312
313
314
315
316
317
318
|
# File 'lib/crowbar/client/app/node.rb', line 310
def reboot(name)
Command::Node::Reboot.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#reinstall(name) ⇒ Object
256
257
258
259
260
261
262
263
264
|
# File 'lib/crowbar/client/app/node.rb', line 256
def reinstall(name)
Command::Node::Reinstall.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#rename(name, value) ⇒ Object
419
420
421
422
423
424
425
426
427
428
|
# File 'lib/crowbar/client/app/node.rb', line 419
def rename(name, value)
Command::Node::Rename.new(
*command_params(
name: name,
value: value
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#reset(name) ⇒ Object
274
275
276
277
278
279
280
281
282
|
# File 'lib/crowbar/client/app/node.rb', line 274
def reset(name)
Command::Node::Reset.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#role(name, value) ⇒ Object
400
401
402
403
404
405
406
407
408
409
|
# File 'lib/crowbar/client/app/node.rb', line 400
def role(name, value)
Command::Node::Role.new(
*command_params(
name: name,
value: value
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#show(name) ⇒ Object
184
185
186
187
188
189
190
191
192
|
# File 'lib/crowbar/client/app/node.rb', line 184
def show(name)
Command::Node::Show.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#shutdown(name) ⇒ Object
292
293
294
295
296
297
298
299
300
|
# File 'lib/crowbar/client/app/node.rb', line 292
def shutdown(name)
Command::Node::Shutdown.new(
*command_params(
name: name
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|
#transition(name, state) ⇒ Object
438
439
440
441
442
443
444
445
446
447
|
# File 'lib/crowbar/client/app/node.rb', line 438
def transition(name, state)
Command::Node::Transition.new(
*command_params(
name: name,
state: state
)
).execute
rescue SimpleCatchableError => e
err e.message, 1
end
|