Sha256: ecd31e4d09beefb139782ff4b7c0e016b86bc160f7242d347fd00ed00547550f
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# unlike the other client classes (again, this design sucks) this class # is basically just a proxy class -- it calls its methods on the driver # and that's about it class Puppet::Client::ProxyClient < Puppet::Client def self.mkmethods interface = @handler.interface namespace = interface.prefix interface.methods.each { |ary| method = ary[0] Puppet.debug "%s: defining %s.%s" % [self, namespace, method] define_method(method) { |*args| begin @driver.send(method, *args) rescue XMLRPC::FaultException => detail #Puppet.err "Could not call %s.%s: %s" % # [namespace, method, detail.faultString] #raise NetworkClientError, # "XMLRPC Error: %s" % detail.faultString raise NetworkClientError, detail.faultString end } } end end # $Id: proxy.rb 1145 2006-04-28 04:08:38Z luke $
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.18.4 | lib/puppet/client/proxy.rb |