summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorMatthias Pigulla <mp@webfactory.de>2011-11-11 19:10:39 +0100
committerMatthias Pigulla <mp@webfactory.de>2011-11-11 19:10:39 +0100
commitb5110938f5cb6736a13bbecbef4fbcaf6837ce56 (patch)
tree89265777563a677e644e9eb5ac607678c2a1e60e /lib/puppet
parent2723cbcd6ebca42471ee311420ec32afafcdad18 (diff)
downloadpuppet-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.rb4
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