Sha256: 37c284045b0eb514a1747f92415281040c21f12c54ae2963db33a742d3d9992b
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
module Fluent module Platforms @drivers = {} def self.register(driver, platform) @drivers[driver] = platform end def self.list @drivers end # This module determines what execution platform Fluent will use. The # decision is based on the browser that has been established for the # execution profile. # # @param browser [Object] the browser to establish the platform for # @return [Object] a platform object to execute tests against def get_platform_for(browser) Fluent::Platforms.list.each_value do |driver| return driver.create_platform_object_for(browser) if driver.works_with?(browser) end msg = "Unable to create a platform object for #{browser}." raise Fluent::Errors::UnableToCreatePlatform, msg end end end require 'fluent/platform_watir'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-0.1.0 | lib/fluent/platforms.rb |