Merge pull request #16 from mfournier/missing-working_copy_exists

Added missing 'working_copy_exists?' method.
This commit is contained in:
James Turnbull 2011-11-19 11:04:16 -08:00
commit 6fb7998cde
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