Sha256: 008cab8db3121b8bd6a1ecfd7bbb911ca4b866b7eebb27163ed130f2f430c44a

Contents?: true

Size: 734 Bytes

Versions: 11

Compression:

Stored size: 734 Bytes

Contents

module Browsed
  class Configuration
    attr_accessor :driver, :browser, :environment
    attr_accessor :phantomjs_path, :download_path
    attr_accessor :maximum_processes, :processes_max_ttl
    attr_accessor :verbose
  
    def initialize
      self.driver               =   :poltergeist
      self.browser              =   :phantomjs
      
      self.environment          =   :production
      
      self.phantomjs_path       =   "/usr/local/bin/phantomjs"
      
      self.download_path        =   nil
      
      self.maximum_processes    =   nil
      self.processes_max_ttl    =   60 * 30 # 30 minutes
      
      self.verbose              =   false
    end
    
    def verbose?
      self.verbose
    end
  
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
browsed-0.2.0 lib/browsed/configuration.rb
browsed-0.1.9 lib/browsed/configuration.rb
browsed-0.1.8 lib/browsed/configuration.rb
browsed-0.1.7 lib/browsed/configuration.rb
browsed-0.1.6 lib/browsed/configuration.rb
browsed-0.1.5 lib/browsed/configuration.rb
browsed-0.1.4 lib/browsed/configuration.rb
browsed-0.1.3 lib/browsed/configuration.rb
browsed-0.1.2 lib/browsed/configuration.rb
browsed-0.1.1 lib/browsed/configuration.rb
browsed-0.1.0 lib/browsed/configuration.rb