class Crowbar::Client::App::Node
A Thor based CLI wrapper for node commands
Public Instance Methods
allocate(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 405 def allocate(name) Command::Node::Allocate.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
delete(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 261 def delete(name) Command::Node::Delete.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
group(name, value)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 463 def group(name, value) Command::Node::Group.new( *command_params( name: name, value: value ) ).execute rescue => e catch_errors(e) end
hardware(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 225 def hardware(name) Command::Node::Hardware.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
identify(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 243 def identify(name) Command::Node::Identify.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
list()
click to toggle source
# File lib/crowbar/client/app/node.rb, line 148 def list Command::Node::List.new( *command_params ).execute rescue => e catch_errors(e) end
powercycle(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 351 def powercycle(name) Command::Node::Powercycle.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
poweroff(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 369 def poweroff(name) Command::Node::Poweroff.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
poweron(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 387 def poweron(name) Command::Node::Poweron.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
reboot(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 333 def reboot(name) Command::Node::Reboot.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
reinstall(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 279 def reinstall(name) Command::Node::Reinstall.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
rename(name, value)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 442 def rename(name, value) Command::Node::Rename.new( *command_params( name: name, value: value ) ).execute rescue => e catch_errors(e) end
reset(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 297 def reset(name) Command::Node::Reset.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
role(name, value)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 423 def role(name, value) Command::Node::Role.new( *command_params( name: name, value: value ) ).execute rescue => e catch_errors(e) end
show(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 207 def show(name) Command::Node::Show.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
shutdown(name)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 315 def shutdown(name) Command::Node::Shutdown.new( *command_params( name: name ) ).execute rescue => e catch_errors(e) end
status()
click to toggle source
# File lib/crowbar/client/app/node.rb, line 82 def status Command::Node::Status.new( *command_params ).execute rescue => e catch_errors(e) end
transition(name, state)
click to toggle source
# File lib/crowbar/client/app/node.rb, line 482 def transition(name, state) Command::Node::Transition.new( *command_params( name: name, state: state ) ).execute rescue => e catch_errors(e) end