class Aruba::Platforms::UnixEnvironmentVariables::UpdateAction
Update environment
Attributes
Public Class Methods
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
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