ManageIQ/linux_admin

View on GitHub
lib/linux_admin/system.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module LinuxAdmin
  class System
    def self.reboot!
      Common.run!(Common.cmd(:shutdown),
          :params => { "-r" => "now" })
    end

    def self.shutdown!
      Common.run!(Common.cmd(:shutdown),
          :params => { "-h" => "0" })
    end
  end
end