Class: Arachni::RPC::Server::Base
- Defined in:
- lib/arachni/rpc/server/base.rb
Overview
RPC server class
@author: Tasos “Zapotek” Laskos
<[email protected]>
<[email protected]>
@version: 0.1
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.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/arachni/rpc/server/base.rb', line 27 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
43 44 45 |
# File 'lib/arachni/rpc/server/base.rb', line 43 def ready? @ready ||= false end |
#start ⇒ Object
38 39 40 41 |
# File 'lib/arachni/rpc/server/base.rb', line 38 def start super @ready = true end |