Sha256: c110b496e462489f71904240e38a0db2e4e46c150e628902561302e4892996c8

Contents?: true

Size: 279 Bytes

Versions: 12

Compression:

Stored size: 279 Bytes

Contents

module Hyperstack
  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

12 entries across 12 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.8 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.7 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.6 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.5 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.4 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.3 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.2 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1.1 lib/hyperstack/env.rb
hyperstack-config-1.0.0.pre.alpha1 lib/hyperstack/env.rb
hyperstack-config-1.0.alpha1 lib/hyperstack/env.rb
hyperstack-config-1.0.pre.alpha1 lib/hyperstack/env.rb
hyperstack-config-0.1 lib/hyperstack/env.rb