Sha256: 0e0bbdec844f3af6eeab7cbba5609f716e0b9825acf28dd93c32d8f03db11c79

Contents?: true

Size: 630 Bytes

Versions: 36

Compression:

Stored size: 630 Bytes

Contents

require 'fig/environment_variables'

module Fig; end;
module Fig::EnvironmentVariables; end

# Manager of a set of environment variables where the variable names are
# case-sensitive, e.g. on *nix.
class Fig::EnvironmentVariables::CaseSensitive
  include Fig::EnvironmentVariables

  def [](key)
    return @variables[key]
  end

  def []=(new_key, new_value)
    @variables[new_key] = new_value

    return
  end

  def prepend_variable(key, new_value)
    if @variables.key?(key)
      @variables[key] = new_value + File::PATH_SEPARATOR + @variables[key]
    else
      @variables[key] = new_value
    end

    return
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.22.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.22.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.21.1.beta.2 lib/fig/environment_variables/case_sensitive.rb
fig-1.21.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.21.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.20.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.20.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.19.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.18.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.17.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.16.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.16.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.15.1.beta.2 lib/fig/environment_variables/case_sensitive.rb
fig-1.15.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.15.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.14.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.13.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.12.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.11.0 lib/fig/environment_variables/case_sensitive.rb