Sha256: 851e03690108440bd41d5f1996b5fca2a87e2585f3e73b2e7ab9bf9c8a629d5f

Contents?: true

Size: 591 Bytes

Versions: 325

Compression:

Stored size: 591 Bytes

Contents

module GovukPublishingComponents
  module AppHelpers
    class Environment
      GOVUK_ENVIRONMENTS = {
        "production" => "production",
        "staging" => "staging",
        "integration-blue-aws" => "integration",
      }.freeze

      # The "acceptance environment" we're in - not the same as Rails env.
      #
      # Can be "production", "staging", "integration", or "development"
      def self.current_acceptance_environment
        return "example" if ENV["HEROKU"]

        GOVUK_ENVIRONMENTS.fetch(ENV["ERRBIT_ENVIRONMENT_NAME"], "development")
      end
    end
  end
end

Version data entries

325 entries across 325 versions & 1 rubygems

Version Path
govuk_publishing_components-16.10.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.9.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.9.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.9.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.8.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.7.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.6.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.5.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.4.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.3.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.2.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.1.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-16.0.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-15.3.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-15.2.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-15.1.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-15.0.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-14.0.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-13.8.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-13.8.0 lib/govuk_publishing_components/app_helpers/environment.rb