Merge pull request #16 from mfournier/missing-working_copy_exists
Added missing 'working_copy_exists?' method.
This commit is contained in:
commit
6fb7998cde
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue