Added missing 'working_copy_exists?' method.

This commit is contained in:
Marc Fournier 2011-11-19 18:16:40 +01:00
parent 7d03bfca49
commit a5ee22e457
1 changed files with 5 additions and 1 deletions

View File

@ -15,10 +15,14 @@ Puppet::Type.type(:vcsrepo).provide(:bzr, :parent => Puppet::Provider::Vcsrepo)
end
end
def exists?
def working_copy_exists?
File.directory?(File.join(@resource.value(:path), '.bzr'))
end
def exists?
working_copy_exists?
end
def destroy
FileUtils.rm_rf(@resource.value(:path))
end