3 4 5 6
# File 'lib/linux_admin/system.rb', line 3 def self.reboot! Common.run!(Common.cmd(:shutdown), :params => { "-r" => "now" }) end
8 9 10 11
# File 'lib/linux_admin/system.rb', line 8 def self.shutdown! Common.run!(Common.cmd(:shutdown), :params => { "-h" => "0" }) end