Class: LinuxAdmin::System
- Inherits:
-
Object
- Object
- LinuxAdmin::System
- Defined in:
- lib/linux_admin/system.rb
Class Method Summary collapse
Class Method Details
.reboot! ⇒ Object
3 4 5 6 |
# File 'lib/linux_admin/system.rb', line 3 def self.reboot! Common.run!(Common.cmd(:shutdown), :params => { "-r" => "now" }) end |
.shutdown! ⇒ Object
8 9 10 11 |
# File 'lib/linux_admin/system.rb', line 8 def self.shutdown! Common.run!(Common.cmd(:shutdown), :params => { "-h" => "0" }) end |