Sha256: f0494c58c42b8d7e9047a5a8bb3a1d6d291a1d3f0b1f2cb03845000ce548c026

Contents?: true

Size: 647 Bytes

Versions: 15

Compression:

Stored size: 647 Bytes

Contents

# coding: utf-8

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

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/environment_variables/case_sensitive.rb
fig-1.27.8 lib/fig/environment_variables/case_sensitive.rb
fig-1.27.5 lib/fig/environment_variables/case_sensitive.rb
fig-1.27.4 lib/fig/environment_variables/case_sensitive.rb
fig-1.27.3 lib/fig/environment_variables/case_sensitive.rb
fig-1.27.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.26.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.26.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.25.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.25.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.24.1.beta.3 lib/fig/environment_variables/case_sensitive.rb
fig-1.24.1.beta.2 lib/fig/environment_variables/case_sensitive.rb
fig-1.24.1.beta.1 lib/fig/environment_variables/case_sensitive.rb
fig-1.24.0 lib/fig/environment_variables/case_sensitive.rb
fig-1.23.1.beta.1 lib/fig/environment_variables/case_sensitive.rb