class Object

Public Instance Methods

log_ex(e) click to toggle source
# File lib/sys_watchdog/core_extensions.rb, line 7
def log_ex e
  STDERR.puts e.desc
end
match_root_or_current_user(stat) click to toggle source
# File lib/sys_watchdog/core_extensions.rb, line 11
def match_root_or_current_user stat
  (stat.uid == 0           and stat.gid == 0) ||
  (stat.uid == Process.uid and stat.gid == Process.gid)
end