HomePhorge

Adding []/[]= support to Scope
0d2e0672eb51Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Adding []/[]= support to Scope

The interface to scope is much clearer this way anyway,
but this is needed to integrate Puppet with Hiera[1].
It just provides hash-like behavior to Scope, which Hiera
and others can now easily rely on.

I also went through all of the code that used Scope#lookupvar
and Scope#setvar and changed it if possible, and at the same
time cleaned up a lot of tests that were unnecessarily stubbing
(and thus making it difficult to tell if I had actually broken
anything).

1 - https://github.com/ripienaar/hiera

Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Reviewed-by: Nick Lewis <nick@puppetlabs.com>

Details

Provenance
Luke Kanies <luke@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU4ad404ee7e72: Merge branch 'tickets/master/7080-serializable_indirector_requests'
Branches
Unknown
Tags
Unknown

Event Timeline

Luke Kanies <luke@puppetlabs.com> committed rPU0d2e0672eb51: Adding []/[]= support to Scope (authored by Luke Kanies <luke@puppetlabs.com>).Jul 15 2011, 8:51 PM