summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-20 16:34:25 +0000
committerLuke Kanies <luke@madstop.com>2005-07-20 16:34:25 +0000
commit973385f67a47b4dcc46da5022285025f3a7457ab (patch)
treee06b765cda2646c9ad957b8ab5ab196a64262731 /lib
parentc577e57871837b50d8b98c9031b23ab72c0ff119 (diff)
first versions
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@429 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
-rwxr-xr-xlib/puppet/type/filebucket.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/puppet/type/filebucket.rb b/lib/puppet/type/filebucket.rb
new file mode 100755
index 000000000..e1b390e4d
--- /dev/null
+++ b/lib/puppet/type/filebucket.rb
@@ -0,0 +1,37 @@
+#!/usr/local/bin/ruby -w
+# An interface for managing filebuckets from puppet
+
+require 'puppet/filebucket'
+
+module Puppet
+ class Type
+ class FileBucket < Type
+ attr_reader :bucket
+
+ @states = []
+
+ @parameters = [
+ :name,
+ :path
+ ]
+
+ @name = :filebucket
+ @namevar = :name
+
+ def initialize(hash)
+ super
+
+ unless self[:path]
+ self[:path] = File.join(Puppet[:puppetroot], "bucket")
+ end
+
+ @bucket = FileBucket::Bucket.new(
+ :Bucket => self[:path]
+ )
+ end
+
+ end # Puppet::Type::Service
+ end # Puppet::Type
+end
+
+# $Id$