Sha256: 1c71a77cee654cab55b8fb7f1cdff3411da7ba36515da372afc98f173be956ab
Contents?: true
Size: 351 Bytes
Versions: 3
Compression:
Stored size: 351 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linux_admin-0.1.3 | lib/linux_admin/system.rb |
linux_admin-0.1.2 | lib/linux_admin/system.rb |
linux_admin-0.1.1 | lib/linux_admin/system.rb |