Sha256: 7d685c8817e90ea162089f4c290623afb63b3d1251933263dec359e8b72a4976

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module Vx
  module Builder
    class Script

      Env = Struct.new(:app) do

        include Helper::TraceShCommand

        def call(env)
          env.init << 'export LC_ALL=en_US.UTF8'
          env.source.global_env.each do |e|
            env.init << trace_sh_command("export #{e}")
          end
          env.announce << trace_sh_command("env")
          app.call(env)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vx-builder-0.0.4 lib/vx/builder/script/env.rb
vx-builder-0.0.3 lib/vx/builder/script/env.rb
vx-builder-0.0.2 lib/vx/builder/script/env.rb