Class: Arachni::RPC::Client::Instance

Inherits:
Object
  • Object
show all
Defined in:
lib/arachni/rpc/client/instance.rb

Overview

RPC client for remote instances spawned by a remote dispatcher

Author:

Defined Under Namespace

Classes: OptsMapper

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts, url, token = nil) ⇒ Instance

Returns a new instance of Instance.



58
59
60
61
62
63
64
65
66
67
# File 'lib/arachni/rpc/client/instance.rb', line 58

def initialize( opts, url, token = nil )
    @client = Base.new( opts, url, token )

    @opts      = OptsMapper.new( @client, 'opts' )
    @framework = RemoteObjectMapper.new( @client, 'framework' )
    @spider    = RemoteObjectMapper.new( @client, 'spider' )
    @modules   = RemoteObjectMapper.new( @client, 'modules' )
    @plugins   = RemoteObjectMapper.new( @client, 'plugins' )
    @service   = RemoteObjectMapper.new( @client, 'service' )
end

Instance Attribute Details

#frameworkObject (readonly)

Returns the value of attribute framework.



33
34
35
# File 'lib/arachni/rpc/client/instance.rb', line 33

def framework
  @framework
end

#modulesObject (readonly)

Returns the value of attribute modules.



34
35
36
# File 'lib/arachni/rpc/client/instance.rb', line 34

def modules
  @modules
end

#optsObject (readonly)

Returns the value of attribute opts.



31
32
33
# File 'lib/arachni/rpc/client/instance.rb', line 31

def opts
  @opts
end

#pluginsObject (readonly)

Returns the value of attribute plugins.



35
36
37
# File 'lib/arachni/rpc/client/instance.rb', line 35

def plugins
  @plugins
end

#serviceObject (readonly)

Returns the value of attribute service.



36
37
38
# File 'lib/arachni/rpc/client/instance.rb', line 36

def service
  @service
end

#spiderObject (readonly)

Returns the value of attribute spider.



32
33
34
# File 'lib/arachni/rpc/client/instance.rb', line 32

def spider
  @spider
end

Instance Method Details

#urlObject



69
70
71
# File 'lib/arachni/rpc/client/instance.rb', line 69

def url
    @client.url
end