Sha256: 83ee5c852c22f310473bb13daa3b946e7ca10896bdbf20767df59c863ba93ccc
Contents?: true
Size: 398 Bytes
Versions: 3
Compression:
Stored size: 398 Bytes
Contents
require 'popen4' # Global Method to Log and Run system commands. def run(command) $CommandLog.info command status = POpen4::popen4(command) do |stdout, stderr| puts stdout.read.strip puts stderr.read.strip end status && status.exitstatus == 0 ? true : false end # Global Method to display a message and the date/time to standard output. def flash(msg) $Log.info msg end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rpipe-0.0.3 | lib/global_additions.rb |
rpipe-0.0.2 | lib/global_additions.rb |
rpipe-0.0.1 | lib/global_additions.rb |