summaryrefslogtreecommitdiffstats
path: root/lib/puppet/client.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-28 05:39:59 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-28 05:39:59 +0000
commitb6c63f6924250a14e998f4256e81c30e950fed99 (patch)
tree8915ec8881f2389b208dfda27a12d11f69730398 /lib/puppet/client.rb
parent0ae5e3392597452acf6a2e9f0d4ac976b8ec9846 (diff)
downloadpuppet-b6c63f6924250a14e998f4256e81c30e950fed99.tar.gz
puppet-b6c63f6924250a14e998f4256e81c30e950fed99.tar.xz
puppet-b6c63f6924250a14e998f4256e81c30e950fed99.zip
Central logging now works, although there appear to be a few kinks to work out.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@732 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/client.rb')
-rw-r--r--lib/puppet/client.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/client.rb b/lib/puppet/client.rb
index b47d235a8..ece131b7b 100644
--- a/lib/puppet/client.rb
+++ b/lib/puppet/client.rb
@@ -483,6 +483,22 @@ module Puppet
end
end
+ class LogClient < Puppet::Client::ProxyClient
+ @drivername = :Logger
+
+ # set up the appropriate interface methods
+ @handler = Puppet::Server::Logger
+ self.mkmethods
+
+ def initialize(hash = {})
+ if hash.include?(:Logger)
+ hash[:Logger] = Puppet::Server::Logger.new()
+ end
+
+ super(hash)
+ end
+ end
+
class StatusClient < Puppet::Client::ProxyClient
# set up the appropriate interface methods
@handler = Puppet::Server::ServerStatus