Sha256: f804221e08b3eeade02f54c6d8cd6dbf93d2d807b853e966894b414469535417

Contents?: true

Size: 971 Bytes

Versions: 5

Compression:

Stored size: 971 Bytes

Contents

=begin
                  Arachni
  Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

require 'arachni/rpc/em'

module Arachni
module RPC

class Client

#
# @author: Tasos "Zapotek" Laskos
#                                      <tasos.laskos@gmail.com>
#                                      <zapotek@segfault.gr>
# @version: 0.1
#
class Base < ::Arachni::RPC::EM::Client

    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

end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.0.4 lib/arachni/rpc/client/base.rb
arachni-0.4.0.3 lib/arachni/rpc/client/base.rb
arachni-0.4.0.2 lib/arachni/rpc/client/base.rb
arachni-0.4.0.1 lib/arachni/rpc/client/base.rb
arachni-0.4 lib/arachni/rpc/client/base.rb