Sha256: 39d0b24405acdce27b75ca753da000df8c158d69a47933e081a43a51977d9a1f

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

module Fanforce::Base::DomainEnvironments

  # Base domains for development environment.
  # @return [hash]
  def self.development
    root_domain = (ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg')
    {
        :base                 => ENV['FANFORCE_GEM_BASE_DOMAIN'] || "fanforce.#{root_domain}",
        :default_short_domain => ENV['FANFORCE_GEM_DEFAULT_SHORT_DOMAIN'] || "fanforc.#{root_domain}",
        :apps_base            => ENV['FANFORCE_GEM_APPS_BASE_DOMAIN']     || "ffapp.#{root_domain}",
    }
  end

  # Base domains for test environment.
  # @return [hash]
  def self.test
    {
      :base                 => 'fanforce.gg',
      :default_short_domain => 'fanforc.gg',
      :apps_base            => 'ffapp.gg',
    }
  end

  # Base domains for staging environment.
  # @return [hash]
  def self.staging
    {
        :base                 => 'fanforce-staging.com',
        :default_short_domain => 'fanforc.us',
        :apps_base            => 'ffapp.us',
    }
  end

  # Base domains for production environment.
  # @return [hash]
  def self.production
    {
        :base                 => 'fanforce.com',
        :default_short_domain => 'fanforce.io',
        :apps_base            => 'ffapp.io',
    }
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fanforce-base-1.1.0 lib/fanforce/base/domain_environments.rb
fanforce-base-1.0.4 lib/fanforce/base/domain_environments.rb
fanforce-base-1.0.3 lib/fanforce/base/domain_environments.rb
fanforce-base-1.0.2 lib/fanforce/base/domain_environments.rb
fanforce-base-1.0.1 lib/fanforce/base/domain_environments.rb
fanforce-base-1.0.0 lib/fanforce/base/domain_environments.rb