Sha256: e0755e1943264e9dba392ba655abb9481f31a8fd7b642e1a958108ce4d3f4668
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
# typed: false # frozen_string_literal: true YETTO_URL = if Rails.env.production? "web.yetto.app" elsif Rails.env.staging? "web.yetto.dev" elsif Rails.env.development? "localhost:3000" elsif Rails.env.test? "web.yetto.test" end YETTO_API_TLD = ENV.fetch("YETTO_API_TLD", "#{YETTO_URL}/api") YETTO_API_VERSION = ENV.fetch("YETTO_API_VERSION", "2023-03-06") SLACK_LOG_URL = Rails.application.credentials.fetch(:SLACK_LOG_URL, ENV.fetch("SLACK_LOG_URL", "https://slack.com/the_log_room")) PROTOCOL = Rails.env.development? ? "http://" : "https://" PLUG_APP_URL = if Rails.env.production? "app.plugs.yetto.app" elsif Rails.env.staging? "app.plugs.yetto.dev" elsif Rails.env.development? "plug-app.ngrok.io" elsif Rails.env.test? "app.plugs.yetto.test" end YETTO_PLUG_PEM = Rails.application.credentials.fetch(:YETTO_PLUG_PEM, ENV.fetch("YETTO_PLUG_PEM", Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem").read)) SIGNING_SECRET = Rails.application.credentials.fetch(:SIGNING_SECRET, ENV.fetch("SIGNING_SECRET", "super-secret")) YETTO_PLUG_ID = Rails.application.credentials.fetch(:YETTO_PLUG_ID, ENV.fetch("YETTO_PLUG_ID", "super-secret")) def productionish? Rails.env.production? || Rails.env.staging? end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hephaestus-0.3.1 | templates/config/initializers/environment.rb |
hephaestus-0.2.3 | templates/config/initializers/environment.rb |