Sha256: 99e5cb5ffb2ba54cbfcaa7c44268df13b7b12810a07ef6b858d6d784a807883e
Contents?: true
Size: 440 Bytes
Versions: 2
Compression:
Stored size: 440 Bytes
Contents
require 'mixlib/shellout' module Lambom module ShellMixin def run_cmd(*cmd) opts = {} if $debug puts "RUN_CMD: #{cmd}" opts = {:live_stream => STDOUT} end com = Mixlib::ShellOut.new(cmd, opts) com.run_command com.error! puts "output: #{com.stdout}" if $debug com.stdout end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lambom-0.3.1 | lib/lambom/shell_mixin.rb |
lambom-0.3.0 | lib/lambom/shell_mixin.rb |