Method: Frameworks::EnvHelper#prepare_host

Defined in:
lib/frameworks/cucumber.rb

#prepare_hostObject



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/frameworks/cucumber.rb', line 83

def prepare_host
  ENV['SCHEME']=='https' ? scheme = 'https' : scheme = 'http'
  @www_prefix = "#{scheme}://www."
  @pal_prefix = "#{scheme}://pal."
  @ssl_prefix = "https://ssl."
  @static_prefix = "#{scheme}://static."
  @open_prefix = "#{scheme}://open."
  @bbc_domain = '.' + (ENV['FW_BBC_DOMAIN'] || 'bbc.co.uk')
  @bbci_domain = '.bbci.co.uk'
  @sandbox = "#{scheme}://pal.sandbox.dev"
  @sandbox6 = "#{scheme}://sandbox"
  @mobiledot_prefix = "#{scheme}://mobile."
  @mdot_prefix = "#{scheme}://m."
  @sslsandbox = "https://ssl.sandbox.dev"
  @sslsandbox6 = "https://ssl.sandbox"
  @static_sandbox = "#{scheme}://static.sandbox.dev"
  @static_sandbox6 = "#{scheme}://static.sandbox"      
end