diff options
author | Matthias Pigulla <mp@webfactory.de> | 2011-11-11 19:10:39 +0100 |
---|---|---|
committer | Matthias Pigulla <mp@webfactory.de> | 2011-11-11 19:10:39 +0100 |
commit | b5110938f5cb6736a13bbecbef4fbcaf6837ce56 (patch) | |
tree | 89265777563a677e644e9eb5ac607678c2a1e60e /lib/puppet | |
parent | 2723cbcd6ebca42471ee311420ec32afafcdad18 (diff) | |
download | puppet-vcsrepo-b5110938f5cb6736a13bbecbef4fbcaf6837ce56.tar.gz puppet-vcsrepo-b5110938f5cb6736a13bbecbef4fbcaf6837ce56.tar.bz2 |
Fix (#9083) as suggested by the original bug reporter.
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/provider/vcsrepo/cvs.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/provider/vcsrepo/cvs.rb b/lib/puppet/provider/vcsrepo/cvs.rb index e82c23a..fbe2eae 100644 --- a/lib/puppet/provider/vcsrepo/cvs.rb +++ b/lib/puppet/provider/vcsrepo/cvs.rb @@ -24,6 +24,10 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo) File.directory?(directory) end + def working_copy_exists? + File.directory?(File.join(@resource.value(:path), 'CVS')) + end + def destroy FileUtils.rm_rf(@resource.value(:path)) end |