diff options
| author | Luke Kanies <luke@madstop.com> | 2005-07-20 16:34:25 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-07-20 16:34:25 +0000 |
| commit | 973385f67a47b4dcc46da5022285025f3a7457ab (patch) | |
| tree | e06b765cda2646c9ad957b8ab5ab196a64262731 /lib/puppet | |
| parent | c577e57871837b50d8b98c9031b23ab72c0ff119 (diff) | |
first versions
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@429 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
| -rwxr-xr-x | lib/puppet/type/filebucket.rb | 37 |
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$ |
