Fix (#9083) as suggested by the original bug reporter.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user