Sha256: 82a9ab79ac131bc0dbc6cbc0f224d02e42a6f3a9e947cf0a3bbbf70e11fcb343

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

module Mechanize
  class Agent
    $cfg = YAML::load_file(File.expand_path(File.dirname(__FILE__)) + '/../conf/sl_133.yaml')
    include MechanizeHelpers
    @@agent = Mechanize.new

    if const_defined?(:PROXY)
      if PROXY.has_key?(:enabled) && PROXY[:enabled]
        msg="Expected to find keys :host & :port"
          
        raise ProxyArgumentError, msg unless PROXY.has_key?(:host) && 
                                             PROXY.has_key?(:port)
                                               
        @@agent.set_proxy(PROXY[:host], PROXY[:port])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qa_robusta-0.1.9 mechanize_interface/lib/agent.rb
qa_robusta-0.1.8 mechanize_interface/lib/agent.rb
qa_robusta-0.1.5 mechanize_interface/lib/agent.rb
qa_robusta-0.1.4 mechanize_interface/lib/agent.rb
qa_robusta-0.1.3 mechanize_interface/lib/agent.rb