diff options
author | Luke Kanies <luke@madstop.com> | 2005-08-23 17:57:08 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-08-23 17:57:08 +0000 |
commit | dde841fa4653c11886bb80b8c402629e4f105ba0 (patch) | |
tree | 8b280a4242459751cc871ff8d5ba2093141233c4 /lib/puppet/client.rb | |
parent | 49e3e3771cdf2eabb71b406167bc975386392354 (diff) | |
download | puppet-dde841fa4653c11886bb80b8c402629e4f105ba0.tar.gz puppet-dde841fa4653c11886bb80b8c402629e4f105ba0.tar.xz puppet-dde841fa4653c11886bb80b8c402629e4f105ba0.zip |
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
Diffstat (limited to 'lib/puppet/client.rb')
-rw-r--r-- | lib/puppet/client.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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 |