From dde841fa4653c11886bb80b8c402629e4f105ba0 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 23 Aug 2005 17:57:08 +0000 Subject: Created a Handler base class for all of the server handlers, which allows a lot of the manual work to now be automatic git-svn-id: https://reductivelabs.com/svn/puppet/trunk@582 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/client.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/puppet/client.rb') diff --git a/lib/puppet/client.rb b/lib/puppet/client.rb index 7998f2ff8..bc5869a76 100644 --- a/lib/puppet/client.rb +++ b/lib/puppet/client.rb @@ -33,9 +33,8 @@ module Puppet class NetworkClient < XMLRPC::Client #include Puppet::Daemon - #@@handlers = [Puppet::FileServer, Puppet::CA, Puppet::Server::Master] - - Puppet::Server.eachhandler { |name, handler| + # add the methods associated with each namespace + Puppet::Server::Handler.each { |handler| interface = handler.interface namespace = interface.prefix -- cgit