Sha256: 5e8ae7101b4e5422773f95c6393b470baa0c8d6f8cb4d019a96df8845b1b2964

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
linux_admin-0.14.0 lib/linux_admin/system.rb
linux_admin-0.13.0 lib/linux_admin/system.rb
linux_admin-0.12.1 lib/linux_admin/system.rb
linux_admin-0.12.0 lib/linux_admin/system.rb