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: Tasos “Zapotek” Laskos

<[email protected]>
<[email protected]>

@version: 0.1.3

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.



48
49
50
51
52
53
54
55
56
# File 'lib/arachni/rpc/client/instance.rb', line 48

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

    @opts      = OptsMapper.new( @client, 'opts' )
    @framework = RemoteObjectMapper.new( @client, 'framework' )
    @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.



29
30
31
# File 'lib/arachni/rpc/client/instance.rb', line 29

def framework
  @framework
end

#modulesObject (readonly)

Returns the value of attribute modules.



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

def modules
  @modules
end

#optsObject (readonly)

Returns the value of attribute opts.



28
29
30
# File 'lib/arachni/rpc/client/instance.rb', line 28

def opts
  @opts
end

#pluginsObject (readonly)

Returns the value of attribute plugins.



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

def plugins
  @plugins
end

#serviceObject (readonly)

Returns the value of attribute service.



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

def service
  @service
end