Added missing 'working_copy_exists?' method.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user