Module: Fanforce::Domains

Extended by:
Domains
Included in:
Fanforce, Domains
Defined in:
lib/fanforce/domains.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
# File 'lib/fanforce/domains.rb', line 5

def self.included(base) base.extend(self) end

Instance Method Details

#api_domainObject



36
37
38
# File 'lib/fanforce/domains.rb', line 36

def api_domain
  'api.' + base_domain
end

#api_domain_sslObject



40
41
42
# File 'lib/fanforce/domains.rb', line 40

def api_domain_ssl
  environment == 'development' ? api_domain : "#{environ.to_s.downcase}-supercore-api.herokuapp.com"
end

#app_domainObject

these should be moved to edition



66
67
68
# File 'lib/fanforce/domains.rb', line 66

def app_domain
  'app.' + base_domain
end

#apps_base_domainObject



28
29
30
# File 'lib/fanforce/domains.rb', line 28

def apps_base_domain
  Fanforce::DomainEnvironments.method(environment).call[:apps_base]
end

#base_domainObject



20
21
22
# File 'lib/fanforce/domains.rb', line 20

def base_domain
  Fanforce::DomainEnvironments.method(environment).call[:base]
end

#components_base_domainObject



32
33
34
# File 'lib/fanforce/domains.rb', line 32

def components_base_domain
  Fanforce::DomainEnvironments.method(environment).call[:components_base]
end

#controller_domainObject



48
49
50
# File 'lib/fanforce/domains.rb', line 48

def controller_domain
  'controller.' + base_domain
end

#default_short_domainObject



24
25
26
# File 'lib/fanforce/domains.rb', line 24

def default_short_domain
  Fanforce::DomainEnvironments.method(environment).call[:default_short_domain]
end

#developers_domainObject



60
61
62
# File 'lib/fanforce/domains.rb', line 60

def developers_domain
  'developers.' + base_domain
end

#environObject



11
12
13
14
15
16
17
18
# File 'lib/fanforce/domains.rb', line 11

def environ
  case environment
    when 'production'  then :Prd
    when 'staging'     then :Stg
    when 'test'        then :Test
    when 'development' then :Dev
  end
end

#environmentObject



7
8
9
# File 'lib/fanforce/domains.rb', line 7

def environment
  ENV['RACK_ENV'] || 'development'
end

#eye_domainObject



44
45
46
# File 'lib/fanforce/domains.rb', line 44

def eye_domain
  'i.' + base_domain
end

#signup_domainObject



70
71
72
# File 'lib/fanforce/domains.rb', line 70

def 
  'signup.' + base_domain
end

#uranium_domainObject



52
53
54
# File 'lib/fanforce/domains.rb', line 52

def uranium_domain
  'uranium.' + base_domain
end

#website_domainObject



56
57
58
# File 'lib/fanforce/domains.rb', line 56

def website_domain
  'www.' + base_domain
end