Method: CollinsShell::Console::Asset#reboot!

Defined in:
lib/collins_shell/console/asset.rb

#reboot!(how = "rebootSoft") ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/collins_shell/console/asset.rb', line 20

def reboot! how = "rebootSoft"
  Collins::Option(how).map do |how|
    action = Collins::Power.normalize_action(how)
    verifying_response("reboot") {
      @asset_client.power!(action)
    }
  end.get_or_else {
    cput("A reboot argument is required. reboot <action>")
  }
end