Sha256: 5d9afb0cb09cc276cb6d96be66f8ffbcb003e5c49139e215cc5a25800aeda057

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

require 'mixlib/shellout'

module Lambom
    module ShellMixin
        def run_cmd(*cmd)
            puts "RUN_CMD: #{cmd}" if $debug
            com = Mixlib::ShellOut.new(cmd)
            com.run_command
            com.error!
            puts "salida: #{com.stdout}" if $debug
            com.stdout
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lambom-0.2.2 lib/lambom/shell_mixin.rb
lambom-0.2.1 lib/lambom/shell_mixin.rb
lambom-0.2.0 lib/lambom/shell_mixin.rb
lambom-0.1.2 lib/lambom/shell_mixin.rb
lambom-0.1.1 lib/lambom/shell_mixin.rb