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.13.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.12.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.11.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.11.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.10.3 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.10.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.10.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.10.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.9.4 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.9.3 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.9.2 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.9.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.9.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.8.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.7.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.7.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.6.1 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.6.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.5.0 lib/govuk_publishing_components/app_helpers/environment.rb
govuk_publishing_components-24.4.1 lib/govuk_publishing_components/app_helpers/environment.rb