Sha256: 3d779a8a24d0e78bffcdeddec56891c3a58302df5f2f0ca39e983737a343a933
Contents?: true
Size: 1.23 KB
Versions: 7
Compression:
Stored size: 1.23 KB
Contents
module Fanforce::Base::DomainEnvironments # Base domains for development environment. # @return [hash] def self.development root_domain = (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'dev') { :base => ENV['FANFORCE_GEM_BASE_DOMAIN'] || "fanforce.#{root_domain}", :default_short_domain => ENV['FANFORCE_GEM_DEFAULT_SHORT_DOMAIN'] || "fnfrc.#{root_domain}", :plugins_base => ENV['FANFORCE_GEM_PLUGINS_BASE_DOMAIN'] || "ffplugin.#{root_domain}", } end # Base domains for test environment. # @return [hash] def self.test { :base => 'fanforce.dev', :default_short_domain => 'fnfrc.dev', :plugins_base => 'ffplugin.dev', } end # Base domains for staging environment. # @return [hash] def self.staging { :base => 'fanforce-staging.com', :default_short_domain => 'fnfrc.us', :plugins_base => 'ffplugin.us', } end # Base domains for production environment. # @return [hash] def self.production { :base => 'fanforce.com', :default_short_domain => 'fanforce.io', :plugins_base => 'ffplugin.io', } end end
Version data entries
7 entries across 7 versions & 1 rubygems