Class: LinuxAdmin::System

Inherits:
LinuxAdmin show all
Defined in:
lib/linux_admin/system.rb

Constant Summary

Constants inherited from LinuxAdmin

VERSION

Class Method Summary collapse

Methods included from Common

#cmd, #run, #run!

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