Sha256: 149fb1af69c9e65fc111ad3e38ab87e16440b6c285e99bdb35f3ef9cee7f2748

Contents?: true

Size: 808 Bytes

Versions: 2

Compression:

Stored size: 808 Bytes

Contents

begin
  require 'fluent'
rescue LoadError
  STDOUT.puts ['The Fluent test execution library is not installed.',
               'The driver file is currently set to use the Fluent library but',
               'that gem was not found. Run the following command:', '',
               '  gem install fluent'].join("\n")
  Kernel.exit(1)
end

Domain(Fluent::Factory)

module Fluent
  module Browser

    @@browser = false

    def self.start
      unless @@browser
        target = ENV['BROWSER'] || 'firefox'
        @@browser = watir_browser(target)
      end
      @@browser
    end

    def self.stop
      @@browser.quit if @@browser
      @@browser = false
    end

  private

    def self.watir_browser(target)
      Watir::Browser.new(target.to_sym)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lucid-0.3.3 lib/lucid/generators/project/browser-fluent.rb
lucid-0.3.0 lib/lucid/generators/project/browser-fluent.rb