Sha256: 425f0f304ebf32dc9164f31eff12feede97fab535ec1c49fe6b35a27bff73197

Contents?: true

Size: 659 Bytes

Versions: 4

Compression:

Stored size: 659 Bytes

Contents

<% if library == 'true' -%>$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../../', 'lib'))

<% end -%><% if driver.downcase == 'symbiont' %>require 'symbiont'
require 'symbiont/factory'
<% if library == 'true' -%>
require 'require_all'

begin
  require_all 'lib'
rescue LoadError
end
<% end -%>
module Symbiont
  module Browser

    def self.start
      unless @browser
        @browser = Watir::Browser.new(ENV['BROWSER'])
      end
      @browser
    end

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

  end # module: Browser
end # module: Symbiont

World(Symbiont::Factory)<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
venom-0.0.7 lib/venom/generators/workshop/driver.rb.tt
venom-0.0.6 lib/venom/generators/workshop/driver.rb.tt
venom-0.0.5 lib/venom/generators/workshop/driver.rb.tt
venom-0.0.4 lib/venom/generators/workshop/driver.rb.tt