summaryrefslogtreecommitdiffstats
path: root/lib/puppet/client
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-20 05:14:13 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-20 05:14:13 +0000
commite24a299511f6a23019edfee16e2541c8078d3f5d (patch)
tree304cd64de34e628f922ba3695a67b65308562894 /lib/puppet/client
parentac049810032ed655b0ea32650127d38df39e1089 (diff)
downloadpuppet-e24a299511f6a23019edfee16e2541c8078d3f5d.tar.gz
puppet-e24a299511f6a23019edfee16e2541c8078d3f5d.tar.xz
puppet-e24a299511f6a23019edfee16e2541c8078d3f5d.zip
A simple first version of an object (called "pelement") server is now in place. There is not yet a client, and the tests are pretty simple so far -- only files have been tested yet. I had to make a significant number of modifications to the file object in order to get this all to work, and one of the big changes I made is to the internals of the checksum state.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1123 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/client')
-rw-r--r--lib/puppet/client/pelement.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/puppet/client/pelement.rb b/lib/puppet/client/pelement.rb
new file mode 100644
index 000000000..116624003
--- /dev/null
+++ b/lib/puppet/client/pelement.rb
@@ -0,0 +1,20 @@
+class Puppet::Client::FileClient < Puppet::Client::ProxyClient
+ @drivername = :FileServer
+
+ # set up the appropriate interface methods
+ @handler = Puppet::Server::FileServer
+
+ self.mkmethods
+
+ def initialize(hash = {})
+ if hash.include?(:FileServer)
+ unless hash[:FileServer].is_a?(Puppet::Server::FileServer)
+ raise Puppet::DevError, "Must pass an actual FS object"
+ end
+ end
+
+ super(hash)
+ end
+end
+
+# $Id$