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/server/ca.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/server/ca.rb')
| -rw-r--r-- | lib/puppet/server/ca.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/puppet/server/ca.rb b/lib/puppet/server/ca.rb index 65074c3f6..20caee9bb 100644 --- a/lib/puppet/server/ca.rb +++ b/lib/puppet/server/ca.rb @@ -9,16 +9,12 @@ require 'xmlrpc/server' module Puppet class Server class CAError < Puppet::Error; end - class CA + class CA < Handler attr_reader :ca - def self.interface - XMLRPC::Service::Interface.new("puppetca") { |iface| - iface.add_method("array getcert(csr)") - } - end - - Puppet::Server.addhandler(:CA, self) + @interface = XMLRPC::Service::Interface.new("puppetca") { |iface| + iface.add_method("array getcert(csr)") + } def autosign?(hostname) # simple values are easy |
