summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-06-27 10:11:47 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-06-27 10:11:47 -0700
commit8f8f48a20dae55664e0eef34970881373e362ba2 (patch)
tree095616ae84bedd8009a71ec80ea0bca8817c646d /lib
parentd99b568a6cb195e5933437924d32e553bd102548 (diff)
parent818f5298b6be3b1a25e997ba84eae237d9051be9 (diff)
downloadpuppet-vcsrepo-8f8f48a20dae55664e0eef34970881373e362ba2.tar.gz
puppet-vcsrepo-8f8f48a20dae55664e0eef34970881373e362ba2.tar.bz2
Merge pull request #176 from hunner/patch_noop
Update noop to work
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/vcsrepo.rb14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/puppet/type/vcsrepo.rb b/lib/puppet/type/vcsrepo.rb
index 0e4450b..42767ab 100644
--- a/lib/puppet/type/vcsrepo.rb
+++ b/lib/puppet/type/vcsrepo.rb
@@ -98,9 +98,8 @@ Puppet::Type.newtype(:vcsrepo) do
if prov
if prov.working_copy_exists?
if @resource.value(:force)
- if noop?
- notice "Noop Mode - Would have deleted repository"
- notice "Noop Mode - Would have created repository from latest"
+ if noop
+ notice "Noop Mode - Would have deleted repository and re-created from latest"
else
notice "Deleting current repository before recloning"
prov.destroy
@@ -212,13 +211,4 @@ Puppet::Type.newtype(:vcsrepo) do
autorequire(:package) do
['git', 'git-core']
end
-
- def noop?
- if defined?(@noop)
- @noop
- else
- Puppet[:noop]
- end
- end
-
end