Sha256: ec2def10930391f2d8efe7f3bedf9fb540f7b13bb6fc8c4d79c284cd18ec959b
Contents?: true
Size: 363 Bytes
Versions: 3
Compression:
Stored size: 363 Bytes
Contents
class String def strip_text split("\n") .map{|l| l.trip} .join("\n") end end class Exception def desc "#{ message } #{ backtrace&.join "\n" }" end end def log_ex e STDERR.puts e.desc end def match_root_or_current_user stat (stat.uid == 0 and stat.gid == 0) || (stat.uid == Process.uid and stat.gid == Process.gid) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
con_ssh-0.0.3 | lib/con_ssh/core_extensions.rb |
con_ssh-0.0.2 | lib/con_ssh/core_extensions.rb |
con_ssh-0.0.1 | lib/con_ssh/core_extensions.rb |