Class: Vx::Builder::Script::Env
- Inherits:
-
Struct
- Object
- Struct
- Vx::Builder::Script::Env
- Includes:
- Helper::TraceShCommand
- Defined in:
- lib/vx/builder/script/env.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
Instance Method Summary collapse
Methods included from Helper::TraceShCommand
Instance Attribute Details
#app ⇒ Object
Returns the value of attribute app
5 6 7 |
# File 'lib/vx/builder/script/env.rb', line 5 def app @app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vx/builder/script/env.rb', line 9 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 |