class Aruba::Platforms::UnixEnvironmentVariables::UpdateAction
Update environment
Attributes
block[R]
other_env[R]
Public Class Methods
new(other_env, &block)
click to toggle source
# File lib/aruba/platforms/unix_environment_variables.rb, line 11 def initialize(other_env, &block) @other_env = other_env.to_h.transform_values(&:to_s) @block = block end
Public Instance Methods
call(env)
click to toggle source
# File lib/aruba/platforms/unix_environment_variables.rb, line 17 def call(env) if block env.update(other_env, &block) else env.update(other_env) end end