Sha256: 6ed12ebd01f234f897fa4a5eecab77ff367afe3073a391bf5ae810cd739b4363
Contents?: true
Size: 986 Bytes
Versions: 5
Compression:
Stored size: 986 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 module Arachni require Arachni::Options.instance.dir['lib'] + 'rpc/client/base' module RPC class Client # # RPC Dispatcher client # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1.3 # class Dispatcher attr_reader :node def initialize( opts, url ) @client = Base.new( opts, url ) @node = RemoteObjectMapper.new( @client, 'node' ) end private # # Used to provide the illusion of locality for remote methods # def method_missing( sym, *args, &block ) @client.call( "dispatcher.#{sym.to_s}", *args, &block ) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems