Merge pull request #12 from webfactory/fix_9083
Fix (#9083) as suggested by the original bug reporter.
This commit is contained in:
commit
7d03bfca49
|
@ -24,6 +24,10 @@ Puppet::Type.type(:vcsrepo).provide(:cvs, :parent => Puppet::Provider::Vcsrepo)
|
||||||
File.directory?(directory)
|
File.directory?(directory)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def working_copy_exists?
|
||||||
|
File.directory?(File.join(@resource.value(:path), 'CVS'))
|
||||||
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
FileUtils.rm_rf(@resource.value(:path))
|
FileUtils.rm_rf(@resource.value(:path))
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue