Sha256: f3bf2f12ab23c8c0dbab8898f97784d66a3f807d4ff8d4d9923a1203a730e78f
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
require_relative 'domain_environments' module Fanforce::Domains extend Fanforce::Domains def self.included(base) base.extend(self) end def environment ENV['RACK_ENV'] || 'development' end def environ case environment when 'production' then :Prd when 'staging' then :Stg when 'test' then :Test when 'development' then :Dev end end def base_domain Fanforce::DomainEnvironments.method(environment).call[:base] end def default_short_domain Fanforce::DomainEnvironments.method(environment).call[:default_short_domain] end def apps_base_domain Fanforce::DomainEnvironments.method(environment).call[:apps_base] end def plugins_base_domain Fanforce::DomainEnvironments.method(environment).call[:plugins_base] end def widgets_base_domain Fanforce::DomainEnvironments.method(environment).call[:widgets_base] end def api_domain 'api.' + base_domain end def api_domain_ssl environment == 'development' ? api_domain : "#{environ.to_s.downcase}-supercore-api.herokuapp.com" end def eye_domain 'i.' + base_domain end def assets_domain 'assets.' + base_domain end def assets_domain_ssl environment == 'development' ? assets_domain : "#{environ.to_s.downcase}-supercore-assets.herokuapp.com" end def controller_domain 'controller.' + base_domain end def uranium_domain 'uranium.' + base_domain end def addon_management_url controller_domain + '/db' end def website_domain 'www.' + base_domain end def developers_domain 'developers.' + base_domain end # these should be moved to edition def app_domain 'app.' + base_domain end def signup_domain 'signup.' + base_domain end def marketplace_domain 'marketplace.' + base_domain end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fanforce-0.19.0 | lib/fanforce/domains.rb |