Sha256: 0e087bd58935e233c4b874369ae1f20c92b057c4b86c32485d25f1c1f94934bc

Contents?: true

Size: 647 Bytes

Versions: 1

Compression:

Stored size: 647 Bytes

Contents

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

<% unless driver.downcase == 'no driver' -%>
require 'symbiont'
require 'symbiont/factory'

<% if library == 'true' -%>
require 'require_all'

require_all 'lib'
<% end -%>

module Symbiont
  module Browser
    
    def self.start
      unless @browser
<% if driver.downcase == 'watir' -%>
        @browser = Watir::Browser.new(ENV['BROWSER'])<% end %>
      end
      @browser
    end
    
    def self.stop
      @browser.quit if @browser
    end
    
  end # module: Browser
end # module: Symbiont

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
venom-0.0.1 lib/venom/generators/workshop/env.rb.tt