summaryrefslogtreecommitdiffstats
path: root/lib/puppet/network/client/file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/network/client/file.rb')
-rw-r--r--lib/puppet/network/client/file.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/puppet/network/client/file.rb b/lib/puppet/network/client/file.rb
new file mode 100644
index 000000000..7596aec1f
--- /dev/null
+++ b/lib/puppet/network/client/file.rb
@@ -0,0 +1,20 @@
+class Puppet::Network::Client::FileClient < Puppet::Network::Client::ProxyClient
+ @drivername = :FileServer
+
+ # set up the appropriate interface methods
+ @handler = Puppet::Network::Server::FileServer
+
+ self.mkmethods
+
+ def initialize(hash = {})
+ if hash.include?(:FileServer)
+ unless hash[:FileServer].is_a?(Puppet::Network::Server::FileServer)
+ raise Puppet::DevError, "Must pass an actual FS object"
+ end
+ end
+
+ super(hash)
+ end
+end
+
+# $Id$