Sha256: f275b0fb3f91ef4448e914dbb749f096c5660c64349e27e74cc54b0d25f3ef71
Contents?: true
Size: 508 Bytes
Versions: 6
Compression:
Stored size: 508 Bytes
Contents
require 'popen4' require 'default_logger' include DefaultLogger unless defined?($Log) DefaultLogger::setup_logger end # 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 $Log.error 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
6 entries across 6 versions & 1 rubygems