Sha256: 1685d3809102726f59a9bfdaf209c0c54b8609f9195445d1eac08d7f7819ce83
Contents?: true
Size: 1.28 KB
Versions: 55
Compression:
Stored size: 1.28 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 = "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 def print_user_api_errors? (Rails.env.development? || Rails.env.staging?) || ENV.fetch("DEBUG", false) end
Version data entries
55 entries across 55 versions & 1 rubygems