diff options
author | Marc Fournier <marc.fournier@camptocamp.com> | 2011-11-19 18:16:40 +0100 |
---|---|---|
committer | Marc Fournier <marc.fournier@camptocamp.com> | 2011-11-19 18:16:40 +0100 |
commit | a5ee22e45732dac7b9ef461e0f8ffc6baef3cd16 (patch) | |
tree | 6bac8324886582eab71a399e03a8c3d52650a6de /lib | |
parent | 7d03bfca4957649f7de4bb7bb6c6d3dcc3d194db (diff) | |
download | puppet-vcsrepo-a5ee22e45732dac7b9ef461e0f8ffc6baef3cd16.tar.gz puppet-vcsrepo-a5ee22e45732dac7b9ef461e0f8ffc6baef3cd16.tar.bz2 |
Added missing 'working_copy_exists?' method.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/provider/vcsrepo/bzr.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/bzr.rb b/lib/puppet/provider/vcsrepo/bzr.rb index 35226d1..3a93e35 100644 --- a/lib/puppet/provider/vcsrepo/bzr.rb +++ b/lib/puppet/provider/vcsrepo/bzr.rb @@ -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 |