Class: LinuxAdmin::System
- Inherits:
-
LinuxAdmin
- Object
- LinuxAdmin
- LinuxAdmin::System
- Defined in:
- lib/linux_admin/system.rb
Constant Summary
Constants inherited from LinuxAdmin
Class Method Summary collapse
Methods included from Common
Class Method Details
.reboot! ⇒ Object
8 9 10 11 |
# File 'lib/linux_admin/system.rb', line 8 def self.reboot! run!(cmd(:shutdown), :params => { "-r" => "now" }) end |
.shutdown! ⇒ Object
13 14 15 16 |
# File 'lib/linux_admin/system.rb', line 13 def self.shutdown! run!(cmd(:shutdown), :params => { "-h" => "0" }) end |