Fix (#9083) as suggested by the original bug reporter.

This commit is contained in:
Matthias Pigulla 2011-11-11 19:10:39 +01:00
parent 2723cbcd6e
commit b5110938f5

@ -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