From b5110938f5cb6736a13bbecbef4fbcaf6837ce56 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Fri, 11 Nov 2011 19:10:39 +0100 Subject: Fix (#9083) as suggested by the original bug reporter. --- lib/puppet/provider/vcsrepo/cvs.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3