This is primarily two changes:

* Add [] and []= to Puppet::Parser::Scope
* Replace lookupvar/setvar usage with those two methods

The first was pretty simple, but the second ended up touching a lot of files.

When I rebased this on master, I found a lot of other small failures
that resulted in most of the rest of the commits.

lib/puppet/parser/ast/leaf.rb                      |    4 +-
lib/puppet/parser/compiler.rb                      |   14 ++-
lib/puppet/parser/functions.rb                     |    5 +-
lib/puppet/parser/functions/extlookup.rb           |   12 +-
lib/puppet/parser/functions/fqdn_rand.rb           |    2 +-
lib/puppet/parser/functions/versioncmp.rb          |    6 +-
lib/puppet/parser/resource.rb                      |    4 +-
lib/puppet/parser/scope.rb                         |   69 +++++++----
lib/puppet/parser/templatewrapper.rb               |    4 +-
lib/puppet/resource.rb                             |   33 +++++
lib/puppet/resource/type.rb                        |   52 ++++----
spec/unit/parser/ast/casestatement_spec.rb         |    2 +-
spec/unit/parser/ast/leaf_spec.rb                  |   53 ++++----
spec/unit/parser/ast/resource_reference_spec.rb    |    2 +-
spec/unit/parser/compiler_spec.rb                  |   86 ++++++++-----
.../unit/parser/functions/create_resources_spec.rb |    2 +-
spec/unit/parser/functions/extlookup_spec.rb       |   10 +-
spec/unit/parser/functions/fqdn_rand_spec.rb       |   12 +--
spec/unit/parser/functions_spec.rb                 |    6 +-
spec/unit/parser/resource_spec.rb                  |    6 +-
spec/unit/parser/scope_spec.rb                     |  130 ++++++++++++--------
spec/unit/parser/templatewrapper_spec.rb           |    6 +-
spec/unit/resource/type_spec.rb                    |   58 ++++-----
spec/unit/resource_spec.rb                         |   61 +++++++++
test/language/ast/variable.rb                      |   29 -----
test/language/functions.rb                         |   24 ++--
test/language/scope.rb                             |   30 +++---
27 files changed, 420 insertions(+), 302 deletions(-)

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to