Sha256: 7bc1b513b0a2385618742576bfcf8a6cc8268253abd41f7f66b73287f002c852

Contents?: true

Size: 430 Bytes

Versions: 11

Compression:

Stored size: 430 Bytes

Contents

module Vx
  class Router
    class ScriptBuilder

      Env = Struct.new(:app) do

        include Helper::TraceShCommand

        def call(env)
          env.init << 'export LC_ALL=en_US.UTF8'
          env.configuration.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

11 entries across 11 versions & 1 rubygems

Version Path
vx-router-0.2.0.pre38 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre37 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre36 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre35 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre34 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre33 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre32 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre31 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre30 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre29 lib/vx/router/script_builder/env.rb
vx-router-0.2.0.pre28 lib/vx/router/script_builder/env.rb