diff options
author | Bruce Williams <bruce@codefluency.com> | 2010-03-14 16:48:19 -0700 |
---|---|---|
committer | Bruce Williams <bruce@codefluency.com> | 2010-03-14 16:48:19 -0700 |
commit | 9304bc707e5c6f6cb5738d939d8e2af69b35149d (patch) | |
tree | 46dcc23faede9e96b05218d46bbd68cc3a79a461 /lib/puppet/provider/vcsrepo | |
parent | 1c8c9bf87045ef3f14ea0b83909390e728d126b3 (diff) |
Make gzip compression and bare repositories explicit features
Diffstat (limited to 'lib/puppet/provider/vcsrepo')
-rw-r--r-- | lib/puppet/provider/vcsrepo/cvs.rb | 1 | ||||
-rw-r--r-- | lib/puppet/provider/vcsrepo/git.rb | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/puppet/provider/vcsrepo/cvs.rb b/lib/puppet/provider/vcsrepo/cvs.rb index 99faa54..1cedc8b 100644 --- a/lib/puppet/provider/vcsrepo/cvs.rb +++ b/lib/puppet/provider/vcsrepo/cvs.rb @@ -5,6 +5,7 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo) commands :cvs => 'cvs' defaultfor :cvs => :exists + has_features :gzip_compression def create if !@resource.value(:source) diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb index eeecac3..274f25b 100644 --- a/lib/puppet/provider/vcsrepo/git.rb +++ b/lib/puppet/provider/vcsrepo/git.rb @@ -5,6 +5,7 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo) commands :git => 'git' defaultfor :git => :exists + has_features :bare_repositories def create if !@resource.value(:source) @@ -47,10 +48,6 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo) def working_copy_exists? File.directory?(File.join(@resource.value(:path), '.git')) end - - def exists? - bare_exists? || working_copy_exists? - end private |