diff options
author | Travis Fields <cyberious@users.noreply.github.com> | 2014-12-26 16:00:09 -0800 |
---|---|---|
committer | Travis Fields <cyberious@users.noreply.github.com> | 2014-12-26 16:00:09 -0800 |
commit | ce6b7d3b1ebf54b5b4073769ac38c342e2afc147 (patch) | |
tree | 46a6c7e81c71f6b91e547cc49099da503658a6f3 /lib/puppet/type | |
parent | 2295710e094ef849052e4b785819a1ba3a2c0fc6 (diff) | |
parent | 56f25d57dfa26de618416e9bdd4a853296ffcbc1 (diff) | |
download | puppet-vcsrepo-ce6b7d3b1ebf54b5b4073769ac38c342e2afc147.tar.gz puppet-vcsrepo-ce6b7d3b1ebf54b5b4073769ac38c342e2afc147.tar.bz2 |
Merge pull request #225 from mhaskel/MODULES-1596
MODULES-1596 - Repository repeatedly destroyed/created with force
Diffstat (limited to 'lib/puppet/type')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb index f678389..b8836d4 100644 --- a/lib/puppet/type/vcsrepo.rb +++ b/lib/puppet/type/vcsrepo.rb @@ -100,16 +100,6 @@ Puppet::Type.newtype(:vcsrepo) do prov = @resource.provider if prov if prov.working_copy_exists? - if @resource.value(:force) - if noop - notice "Noop Mode - Would have deleted repository and re-created from latest" - else - notice "Deleting current repository before recloning" - prov.destroy - notice "Create repository from latest" - prov.create - end - end (@should.include?(:latest) && prov.latest?) ? :latest : :present elsif prov.class.feature?(:bare_repositories) and prov.bare_exists? :bare |