Sha256: bd21e9c19e7184ae6f8210a8d4099c379f5ad942305d9348c59f4464d0cae01d

Contents?: true

Size: 353 Bytes

Versions: 24

Compression:

Stored size: 353 Bytes

Contents

# LinuxAdmin System Representation
#
# Copyright (C) 2013 Red Hat Inc.
# Licensed under the MIT License

class LinuxAdmin
  class System < LinuxAdmin
    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

24 entries across 24 versions & 1 rubygems

Version Path
linux_admin-0.9.4 lib/linux_admin/system.rb
linux_admin-0.9.3 lib/linux_admin/system.rb
linux_admin-0.9.2 lib/linux_admin/system.rb
linux_admin-0.9.1 lib/linux_admin/system.rb
linux_admin-0.9.0 lib/linux_admin/system.rb
linux_admin-0.8.1 lib/linux_admin/system.rb
linux_admin-0.8.0 lib/linux_admin/system.rb
linux_admin-0.7.0 lib/linux_admin/system.rb
linux_admin-0.6.0 lib/linux_admin/system.rb
linux_admin-0.5.7 lib/linux_admin/system.rb
linux_admin-0.5.6 lib/linux_admin/system.rb
linux_admin-0.5.5 lib/linux_admin/system.rb
linux_admin-0.5.4 lib/linux_admin/system.rb
linux_admin-0.5.3 lib/linux_admin/system.rb
linux_admin-0.5.2 lib/linux_admin/system.rb
linux_admin-0.5.1 lib/linux_admin/system.rb
linux_admin-0.5.0 lib/linux_admin/system.rb
linux_admin-0.4.1 lib/linux_admin/system.rb
linux_admin-0.4.0 lib/linux_admin/system.rb
linux_admin-0.3.0 lib/linux_admin/system.rb