Sha256: 5a008db3585c32ca4019fded97cda5f858697a8b4576c535e0c2adeb320c4a50

Contents?: true

Size: 424 Bytes

Versions: 3

Compression:

Stored size: 424 Bytes

Contents

#!/usr/bin/env ruby
# WANT_JSON

# init bundler in dev env
if ENV['QB_DEV_ENV']
  ENV.each {|k, v|
    if k.start_with? 'QB_DEV_ENV_'
      ENV[k.sub('QB_DEV_ENV_', '')] = v
    end
  }
  require 'bundler/setup'
end

require 'qb'
require 'cmds'

class Stream < QB::AnsibleModule
  def main
    Dir.chdir @args['chdir'] if @args['chdir']
    
    status = Cmds.stream @args['cmd']
    
    changed!
  end
end

Stream.new.run

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb-0.1.41 library/stream
qb-0.1.40 library/stream
qb-0.1.39 library/stream