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.7.2 lib/sauce/heroku.rb
sauce-3.7.1 lib/sauce/heroku.rb
sauce-3.7.0 lib/sauce/heroku.rb
sauce-3.5.11 lib/sauce/heroku.rb
sauce-3.5.10 lib/sauce/heroku.rb
sauce-3.5.9 lib/sauce/heroku.rb
sauce-3.5.8 lib/sauce/heroku.rb
sauce-3.5.7 lib/sauce/heroku.rb
sauce_ruby-3.5.11 lib/sauce/heroku.rb
sauce_ruby-3.5.10 lib/sauce/heroku.rb
sauce_ruby-3.5.9 lib/sauce/heroku.rb
sauce_ruby-3.5.8 lib/sauce/heroku.rb
sauce_ruby-3.5.7 lib/sauce/heroku.rb
sauce_ruby-3.5.6 lib/sauce/heroku.rb
sauce-3.5.6 lib/sauce/heroku.rb
sauce-3.5.5 lib/sauce/heroku.rb
sauce-3.5.4 lib/sauce/heroku.rb
sauce-3.5.3 lib/sauce/heroku.rb
sauce-3.5.2 lib/sauce/heroku.rb
sauce-3.5.1 lib/sauce/heroku.rb