Sha256: 456567ef17662d3118df34d22378f6034a9b5b3e3d28077bbf4725b64129d21c

Contents?: true

Size: 416 Bytes

Versions: 42

Compression:

Stored size: 416 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']
    
    Cmds.stream! @args['cmd']
    
    changed!
  end
end

Stream.new.run

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
qb-0.1.63 library/stream
qb-0.1.62 library/stream
qb-0.1.61 library/stream
qb-0.1.60 library/stream
qb-0.1.59 library/stream
qb-0.1.58 library/stream
qb-0.1.57 library/stream
qb-0.1.56 library/stream
qb-0.1.55 library/stream
qb-0.1.54 library/stream
qb-0.1.53 library/stream
qb-0.1.52 library/stream
qb-0.1.51 library/stream
qb-0.1.50 library/stream
qb-0.1.49 library/stream
qb-0.1.48 library/stream
qb-0.1.47 library/stream
qb-0.1.46 library/stream
qb-0.1.45 library/stream
qb-0.1.44 library/stream