Merge pull request #12 from webfactory/fix_9083

Fix (#9083) as suggested by the original bug reporter.
This commit is contained in:
James Turnbull 2011-11-12 09:07:07 -08:00
commit 7d03bfca49
1 changed files with 4 additions and 0 deletions

View 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