# LinuxAdmin System Representation # # Copyright (C) 2013 Red Hat Inc. # Licensed under the MIT License module LinuxAdmin class System extend Common def self.reboot! run!(cmd(:shutdown), :params => { "-r" => "now" }) end def self.shutdown! run!(cmd(:shutdown), :params => { "-h" => "0" }) end end end