Sha256: 075b12d4363a003241f8926659a666d09cc3305932310b31ff9f670c3c6c4993

Contents?: true

Size: 230 Bytes

Versions: 8

Compression:

Stored size: 230 Bytes

Contents

module RockConfig
  class EnvironmentDetector
    def initialize(environment)
      @environment = environment
    end

    def detect
      @environment["RAILS_ENV"] || @environment["RACK_ENV"] || "development"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rock_config-0.0.7 lib/rock_config/environment_detector.rb
rock_config-0.0.6 lib/rock_config/environment_detector.rb
rock_config-0.0.5 lib/rock_config/environment_detector.rb
rock_config-0.0.4 lib/rock_config/environment_detector.rb
rock_config-0.0.3 lib/rock_config/environment_detector.rb
rock_config-0.0.2 lib/rock_config/environment_detector.rb
rock_config-0.0.1 lib/rock_config/environment_detector.rb
rock_config-0.0.0 lib/rock_config/environment_detector.rb