Sha256: b8508b6550a73ad6cb726cf5d996738fde1128c028b760342d4a5d441fa0e4ce

Contents?: true

Size: 847 Bytes

Versions: 123

Compression:

Stored size: 847 Bytes

Contents

module Sauce
  if ENV['SAUCE_ONDEMAND_HEROKU_URL'] and ENV['URL']

    # Heroku Configuation
    config                   = JSON.parse RestClient.get(ENV['SAUCE_ONDEMAND_HEROKU_URL']).body
    Sauce::Selenium_browsers = JSON.parse config["SAUCE_ONDEMAND_BROWSERS"]
    Sauce::Selenium_url      =            "#{config['SAUCE_ONDEMAND_PROTOCOL']}#{ENV['URL']}"
    Sauce::Selenium_host     =            config["SAUCE_ONDEMAND_SERVER"  ]
    Sauce::Selenium_port     =            config["SAUCE_ONDEMAND_PORT"    ]
  else
    
    # Local Configuration
    Sauce::Selenium_url      = ENV['SELENIUM_URL']     || "http://localhost:3000"
    Sauce::Selenium_host     = ENV['SELENIUM_HOST']    || "localhost"
    Sauce::Selenium_port     = ENV['SELENIUM_PORT']    || "4444"
    Sauce::Selenium_browsers = ENV['SELENIUM_BROWSER'] || ["*firefox"]
  end
end

Version data entries

123 entries across 123 versions & 2 rubygems

Version Path
sauce-3.5.0 lib/sauce/heroku.rb
sauce-3.4.9 lib/sauce/heroku.rb
sauce-3.4.8 lib/sauce/heroku.rb
sauce-3.4.7 lib/sauce/heroku.rb
sauce-3.4.6 lib/sauce/heroku.rb
sauce-3.4.5 lib/sauce/heroku.rb
sauce-3.4.4 lib/sauce/heroku.rb
sauce-3.4.3 lib/sauce/heroku.rb
sauce-3.4.2 lib/sauce/heroku.rb
sauce-3.4.1 lib/sauce/heroku.rb
sauce-3.4.0 lib/sauce/heroku.rb
sauce-3.3.2 lib/sauce/heroku.rb
sauce-3.3.1 lib/sauce/heroku.rb
sauce-3.3.0 lib/sauce/heroku.rb
sauce-3.2.0 lib/sauce/heroku.rb
sauce-3.1.3 lib/sauce/heroku.rb
sauce-3.1.2 lib/sauce/heroku.rb
sauce-3.1.1 lib/sauce/heroku.rb
sauce-3.1.0 lib/sauce/heroku.rb
sauce-3.0.6 lib/sauce/heroku.rb