Fix (#9083) as suggested by the original bug reporter.
authorMatthias Pigulla <mp@webfactory.de>
Fri, 11 Nov 2011 18:10:39 +0000 (19:10 +0100)
committerMatthias Pigulla <mp@webfactory.de>
Fri, 11 Nov 2011 18:10:39 +0000 (19:10 +0100)
lib/puppet/provider/vcsrepo/cvs.rb

index e82c23a..fbe2eae 100644 (file)
@@ -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