Sha256: 43641e1bdb2e09600729a88a1042a0579024c12f4dd3e242b52bb11836743a25
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
module Vx module Builder class Script Env = Struct.new(:app) do include Helper::TraceShCommand def call(env) env.init << "set -e" env.init << "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" env.init << 'export LC_ALL=en_US.UTF8' if b = env.task.branch env.init << "export CI_BRANCH=#{b}" end env.source.env.global.each do |e| env.init << trace_sh_command("export #{e}") end app.call(env) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vx-builder-0.0.29 | lib/vx/builder/script/env.rb |
vx-builder-0.0.28 | lib/vx/builder/script/env.rb |