Sha256: 7455c2cc8044300c9c31c77db014ebe0db4b7a12ea07963acef270ef6062d1f6

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 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'
          env.init << "source /etc/profile.d/*.sh"
          env.source.global_env.each do |e|
            env.init << trace_sh_command("export #{e}")
          end
          app.call(env)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vx-builder-0.0.19 lib/vx/builder/script/env.rb