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-24.18.5 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.18.4 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.18.3 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.18.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.18.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.18.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.17.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.16.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.16.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.15.3 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.15.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.15.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.15.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.14.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.14.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.13.5 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.13.4 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.13.3 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.13.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.13.1 lib/govuk_publishing_components/app_helpers/environment.rb