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
410
411
412
413
414
415
416
417
418
|
# File 'lib/crowbar/client/app/node.rb', line 410
def allocate(name)
Command::Node::Allocate.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#delete(name) ⇒ Object
266
267
268
269
270
271
272
273
274
|
# File 'lib/crowbar/client/app/node.rb', line 266
def delete(name)
Command::Node::Delete.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#hardware(name) ⇒ Object
230
231
232
233
234
235
236
237
238
|
# File 'lib/crowbar/client/app/node.rb', line 230
def hardware(name)
Command::Node::Hardware.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#identify(name) ⇒ Object
248
249
250
251
252
253
254
255
256
|
# File 'lib/crowbar/client/app/node.rb', line 248
def identify(name)
Command::Node::Identify.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#list ⇒ Object
153
154
155
156
157
158
159
|
# File 'lib/crowbar/client/app/node.rb', line 153
def list
Command::Node::List.new(
*command_params
).execute
rescue => e
catch_errors(e)
end
|
#powercycle(name) ⇒ Object
356
357
358
359
360
361
362
363
364
|
# File 'lib/crowbar/client/app/node.rb', line 356
def powercycle(name)
Command::Node::Powercycle.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#poweroff(name) ⇒ Object
374
375
376
377
378
379
380
381
382
|
# File 'lib/crowbar/client/app/node.rb', line 374
def poweroff(name)
Command::Node::Poweroff.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#poweron(name) ⇒ Object
392
393
394
395
396
397
398
399
400
|
# File 'lib/crowbar/client/app/node.rb', line 392
def poweron(name)
Command::Node::Poweron.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#reboot(name) ⇒ Object
338
339
340
341
342
343
344
345
346
|
# File 'lib/crowbar/client/app/node.rb', line 338
def reboot(name)
Command::Node::Reboot.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#reinstall(name) ⇒ Object
284
285
286
287
288
289
290
291
292
|
# File 'lib/crowbar/client/app/node.rb', line 284
def reinstall(name)
Command::Node::Reinstall.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#rename(name, value) ⇒ Object
447
448
449
450
451
452
453
454
455
456
|
# File 'lib/crowbar/client/app/node.rb', line 447
def rename(name, value)
Command::Node::Rename.new(
*command_params(
name: name,
value: value
)
).execute
rescue => e
catch_errors(e)
end
|
#reset(name) ⇒ Object
302
303
304
305
306
307
308
309
310
|
# File 'lib/crowbar/client/app/node.rb', line 302
def reset(name)
Command::Node::Reset.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#role(name, value) ⇒ Object
428
429
430
431
432
433
434
435
436
437
|
# File 'lib/crowbar/client/app/node.rb', line 428
def role(name, value)
Command::Node::Role.new(
*command_params(
name: name,
value: value
)
).execute
rescue => e
catch_errors(e)
end
|
#show(name) ⇒ Object
212
213
214
215
216
217
218
219
220
|
# File 'lib/crowbar/client/app/node.rb', line 212
def show(name)
Command::Node::Show.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#shutdown(name) ⇒ Object
320
321
322
323
324
325
326
327
328
|
# File 'lib/crowbar/client/app/node.rb', line 320
def shutdown(name)
Command::Node::Shutdown.new(
*command_params(
name: name
)
).execute
rescue => e
catch_errors(e)
end
|
#status ⇒ Object
79
80
81
82
83
84
85
|
# File 'lib/crowbar/client/app/node.rb', line 79
def status
Command::Node::Status.new(
*command_params
).execute
rescue => e
catch_errors(e)
end
|
#transition(name, state) ⇒ Object
466
467
468
469
470
471
472
473
474
475
|
# File 'lib/crowbar/client/app/node.rb', line 466
def transition(name, state)
Command::Node::Transition.new(
*command_params(
name: name,
state: state
)
).execute
rescue => e
catch_errors(e)
end
|