Sha256: 20194875688a23a50d3509c462d537711246d3874bff35c49e47d00efff2e4d0
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
require "etc" require "shelltastic" module SwissAdmin class User def self.current ENV["USER"] || Etc.getlogin end def self.home Dir.home(Etc.getlogin) end def self.active ::ShellTastic::Command.run("w -s -h").first end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
swiss_admin-0.7.0 | lib/swiss_admin/user/user.rb |
swiss_admin-0.6.1 | lib/swiss_admin/user/user.rb |