Sha256: 6c33815c8193e47bce16f2920ddfb9dd94e63e110a4d94217df4a31b1699bac8
Contents?: true
Size: 922 Bytes
Versions: 4
Compression:
Stored size: 922 Bytes
Contents
# Class that maintains the User and additional methods for the process. # Helper methods provided use the Process module underneath. # # @deprecated Please use {http://www.rubydoc.info/gems/ood_support/OodSupport/Process OodSupport::Process} instead. class OSC::Machete::Process def initialize @user = OSC::Machete::User.from_uid(Process.uid) warn "[DEPRECATION] `OSC::Machete::Process` is deprecated. Please use `OodSupport::Process` instead (see ood_support gem)." end # The system name of the process user def username @user.name end # use gid not egid def groupname Etc.getgrgid(Process.gid).name end # has the group membership changed since this process started? def group_membership_changed? Process.groups.uniq.sort != @user.groups end # The home directory path of the process user. # # @return [String] The directory path. def home @user.home end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
osc-machete-2.0.0 | lib/osc/machete/process.rb |
osc-machete-1.2.2 | lib/osc/machete/process.rb |
osc-machete-1.2.1 | lib/osc/machete/process.rb |
osc-machete-1.2.0 | lib/osc/machete/process.rb |