Method: Beaker::HostPrebuiltSteps#construct_env
- Defined in:
- lib/beaker/host_prebuilt_steps.rb
#construct_env(host, opts) ⇒ Hash
Create the hash of default environment from host (:host_env), global options hash (:host_env) and default PE/Foss puppet variables
518 519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/beaker/host_prebuilt_steps.rb', line 518 def construct_env host, opts env = additive_hash_merge(host[:host_env], opts[:host_env]) env.each_key do |key| separator = host['pathseparator'] if key == 'PATH' && (not host.is_powershell?) separator = ':' end env[key] = env[key].join(separator) end env end |