Class: Arachni::RPC::Client::Base
- Defined in:
- lib/arachni/rpc/client/base.rb
Overview
Instance Method Summary collapse
-
#initialize(opts, url, token = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(opts, url, token = nil) ⇒ Base
Returns a new instance of Base.
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/arachni/rpc/client/base.rb', line 26 def initialize( opts, url, token = nil ) host, port = url.split( ':' ) super( :host => host, :port => port, :token => token, :keep_alive => false, :ssl_ca => opts.ssl_ca, :ssl_pkey => opts.node_ssl_pkey || opts.ssl_pkey, :ssl_cert => opts.node_ssl_cert || opts.ssl_cert ) end |