Sha256: a70b3c35ffd9f46fab86b3e1e62dfa8313f574a3cb706f6961182a5ea5a643b8

Contents?: true

Size: 278 Bytes

Versions: 11

Compression:

Stored size: 278 Bytes

Contents

module Hyperloop
  def self.env
    @environment ||= begin
      env = Rails.env if defined? Rails
      env ||= ENV['RACK_ENV']
      env = 'development' unless %w[development production test staging].include? env
      ActiveSupport::StringInquirer.new(env)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hyperloop-config-0.99.6 lib/hyperloop/env.rb
hyperloop-config-0.99.5 lib/hyperloop/env.rb
hyperloop-config-0.99.4 lib/hyperloop/env.rb
hyperloop-config-0.99.3 lib/hyperloop/env.rb
hyperloop-config-0.99.2 lib/hyperloop/env.rb
hyperloop-config-0.99.1 lib/hyperloop/env.rb
hyperloop-config-0.99.0 lib/hyperloop/env.rb
hyperloop-config-1.0.0.lap28 lib/hyperloop/env.rb
hyperloop-config-1.0.0.lap27 lib/hyperloop/env.rb
hyperloop-config-1.0.0.lap26 lib/hyperloop/env.rb
hyperloop-config-1.0.0.lap25 lib/hyperloop/env.rb