Top Level Namespace

Defined Under Namespace

Classes: Exception, SSHCon, String

Instance Method Summary collapse

Instance Method Details

#log_ex(e) ⇒ Object



16
17
18
# File 'lib/con_ssh/core_extensions.rb', line 16

def log_ex e
  STDERR.puts e.desc
end

#match_root_or_current_user(stat) ⇒ Object



20
21
22
23
# File 'lib/con_ssh/core_extensions.rb', line 20

def match_root_or_current_user stat
  (stat.uid == 0           and stat.gid == 0) ||
  (stat.uid == Process.uid and stat.gid == Process.gid)
end