]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commit - spec/classes/apt_spec.rb
(#12094) Replace chained .with_* with a hash
authorMatthaus Litteken <matthaus@puppetlabs.com>
Sat, 4 Feb 2012 01:24:09 +0000 (17:24 -0800)
committerMatthaus Litteken <matthaus@puppetlabs.com>
Wed, 8 Feb 2012 17:24:43 +0000 (09:24 -0800)
commitd522877cdde21ffca44c5af7a0ba6a3312c4af8a
tree0416b1938d9b882737187c0f7e141240ee3ae78d
parent8cf1bd02891baf0184f8237367aa56f8640f1428
(#12094) Replace chained .with_* with a hash

The hash passing to the with method is cleaner and closer to puppet code, so
all of the with_$param have been replaced with with($hash). This also
includes two minor whitspace changes to unstable.pp and source.pp.
This also replaces the ternary switch on param_set with a hash merge,
which is cleaner and will support more use cases.
12 files changed:
manifests/debian/unstable.pp
manifests/source.pp
spec/classes/apt_spec.rb
spec/classes/debian_testing_spec.rb
spec/classes/debian_unstable_spec.rb
spec/classes/params_spec.rb
spec/classes/release_spec.rb
spec/defines/builddep_spec.rb
spec/defines/force_spec.rb
spec/defines/pin_spec.rb
spec/defines/ppa_spec.rb
spec/defines/source_spec.rb