Sha256: 98199cdddeb6d38041a6f21672c0e76ea28b2b6eb8e68af1ed6e9886f1ce9c7d

Contents?: true

Size: 885 Bytes

Versions: 12

Compression:

Stored size: 885 Bytes

Contents

module Browsed
  class Configuration
    attr_accessor :driver, :browser, :environment
    attr_accessor :binary_path, :root_path, :download_path, :temp_path
    attr_accessor :maximum_processes, :processes_max_ttl
    attr_accessor :verbose
  
    def initialize
      self.driver               =   :selenium_chrome
      self.browser              =   :chrome
      
      self.environment          =   :production
      
      self.binary_path          =   "/usr/local/bin/phantomjs"
      
      self.root_path            =   File.expand_path(File.join(__FILE__, "../../.."))
      self.download_path        =   nil
      self.temp_path            =   "/tmp"
      
      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

12 entries across 12 versions & 1 rubygems

Version Path
browsed-0.3.6 lib/browsed/configuration.rb
browsed-0.3.5 lib/browsed/configuration.rb
browsed-0.3.4 lib/browsed/configuration.rb
browsed-0.3.3 lib/browsed/configuration.rb
browsed-0.3.1 lib/browsed/configuration.rb
browsed-0.3.0 lib/browsed/configuration.rb
browsed-0.2.9 lib/browsed/configuration.rb
browsed-0.2.8 lib/browsed/configuration.rb
browsed-0.2.7 lib/browsed/configuration.rb
browsed-0.2.6 lib/browsed/configuration.rb
browsed-0.2.5 lib/browsed/configuration.rb
browsed-0.2.4 lib/browsed/configuration.rb