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