Sha256: a83117f4fa9f437ff8692c94a0eb33eec85671243548cbeb1a1944c2cf29885e

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

if !ENV['RACK_ENV'] or ENV['RACK_ENV'] == 'development'
  top_level_domain = ENV['FANFORCE_GEM_TOP_LEVEL_DOMAIN'] || 'gg'
  $BASE_DOMAIN    = ENV['FANFORCE_GEM_BASE_DOMAIN'] || 'fanforce.' + top_level_domain
  $SMARTURL_DOMAIN   = 'fanforc.gg'
  $FF_APP_DOMAIN     = 'ffapp.gg'
  $FF_PLUGIN_DOMAIN  = 'ffplugin.gg'
  $FF_WIDGET_DOMAIN  = 'ffwidget.gg'

elsif ENV['RACK_ENV'] == 'test'
  $BASE_DOMAIN       = 'fanforce.gg'
  $SMARTURL_DOMAIN   = 'fanforc.gg'
  $FF_APP_DOMAIN     = 'ffapp.gg'
  $FF_PLUGIN_DOMAIN  = 'ffplugin.gg'
  $FF_WIDGET_DOMAIN  = 'ffwidget.gg'

elsif ENV['RACK_ENV'] == 'staging'
  $BASE_DOMAIN       = 'fanforce-staging.com'
  $SMARTURL_DOMAIN   = 'fanforc.us'
  $FF_APP_DOMAIN     = 'ffapp.us'
  $FF_PLUGIN_DOMAIN  = 'ffplugin.us'
  $FF_WIDGET_DOMAIN  = 'ffwidget.us'

elsif ENV['RACK_ENV'] == 'production'
  $BASE_DOMAIN       = 'fanforce.com'
  $SMARTURL_DOMAIN   = 'fanforce.io'
  $FF_APP_DOMAIN     = 'ffapp.io'
  $FF_PLUGIN_DOMAIN  = 'ffplugin.io'
  $FF_WIDGET_DOMAIN  = 'ffwidget.io'
end

$API_DOMAIN           = 'api.' + $BASE_DOMAIN
$I_DOMAIN             = 'i.' + $BASE_DOMAIN

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fanforce-api-0.11.0 lib/fanforce/api/ff_globals.rb