diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-06-20 13:48:02 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-06-26 11:39:30 -0700 |
commit | 818f5298b6be3b1a25e997ba84eae237d9051be9 (patch) | |
tree | 0a63e808d40aae42c7abd29412fa18a7122061cf /lib | |
parent | e42310c7fb082a20f4155d801e41b980400ae045 (diff) |
Update noop to work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/puppet/type/vcsrepo.rb | 14 |
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 |