Sha256: f97ca6a28c3f8e31978a60ddda3b66c5fe3192b6a21e9f8295c06509fd3c0755
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
class Fanforce require_relative 'domains' def self.base_domain Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:base] end def self.default_short_domain Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:default_short_domain] end def self.apps_base_domain Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:apps_base] end def self.plugins_base_domain Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:plugins_base] end def self.widgets_base_domain Fanforce::Domains.method(ENV['RACK_ENV'] || 'development').call[:widgets_base] end def self.api_domain 'api.' + base_domain end def self.eye_domain 'i.' + base_domain end def self.website_domain 'www.' + base_domain end def self.developers_domain 'developers.' + base_domain end def self.controller_domain 'controller.' + base_domain end def self.addon_management_url controller_domain + '/db' end # these should be moved to edition def self.app_domain 'app.' + base_domain end def self.signup_domain 'signup.' + base_domain end def self.marketplace_domain 'marketplace.' + base_domain end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fanforce-0.14.0 | lib/fanforce/_base.rb |