diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-14 17:02:14 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-14 17:02:14 -0700 |
commit | 52e078444a12d47530a4299d0e9d60b86066c76e (patch) | |
tree | d6c1c5b8129932cffadf40ce6b34d03eda32a923 /lib/puppet/type | |
parent | dabaf6e10e23b106a4ba55c8767908ef508ebe15 (diff) | |
download | puppet-vcsrepo-52e078444a12d47530a4299d0e9d60b86066c76e.tar.gz puppet-vcsrepo-52e078444a12d47530a4299d0e9d60b86066c76e.tar.bz2 |
filesystem_type feature (for svn's --fstype)
Diffstat (limited to 'lib/puppet/type')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index a722152..69c7f74 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -11,6 +11,8 @@ Puppet::Type.newtype(:vcsrepo) do and those with working copies", :methods => [:bare_exists?, :working_copy_exists?] + feature :filesystem_types, + "The provider supports different filesystem types" ensurable do @@ -62,8 +64,8 @@ Puppet::Type.newtype(:vcsrepo) do desc "The source URI for the repository" end - newparam(:fstype) do - desc "Filesystem type (for providers that support it, eg subversion)" + newparam(:fstype, :required_features => [:filesystem_types]) do + desc "Filesystem type" end newproperty(:revision) do @@ -72,7 +74,7 @@ Puppet::Type.newtype(:vcsrepo) do end newparam :compression, :required_features => [:gzip_compression] do - desc "Compression level (used by CVS)" + desc "Compression level" validate do |amount| unless Integer(amount).between?(0, 6) raise ArgumentError, "Unsupported compression level: #{amount} (expected 0-6)" |