Class: Arachni::RPC::Server::Base
- Defined in:
- lib/arachni/rpc/server/base.rb
Overview
RPC server class
Instance Method Summary collapse
-
#initialize(opts, token = nil) ⇒ Base
constructor
A new instance of Base.
- #ready? ⇒ Boolean
- #start ⇒ Object
Constructor Details
#initialize(opts, token = nil) ⇒ Base
Returns a new instance of Base.
30 31 32 33 34 35 36 37 38 39 |
# File 'lib/arachni/rpc/server/base.rb', line 30 def initialize( opts, token = nil ) super( :host => opts.rpc_address, :port => opts.rpc_port, :token => token, :ssl_ca => opts.ssl_ca, :ssl_pkey => opts.ssl_pkey, :ssl_cert => opts.ssl_cert ) end |
Instance Method Details
#ready? ⇒ Boolean
46 47 48 |
# File 'lib/arachni/rpc/server/base.rb', line 46 def ready? @ready ||= false end |
#start ⇒ Object
41 42 43 44 |
# File 'lib/arachni/rpc/server/base.rb', line 41 def start super @ready = true end |