summaryrefslogtreecommitdiff
path: root/lib/hiera/scope.rb
AgeCommit message (Collapse)AuthorFilesLines
2013-04-05(#14985) Alias module_name as calling_moduleAndrew Parker1-1/+2
The new implementation of calling_module turned out to be the same as puppet's own module_name. This makes it simply and alias so that we keep that as the definition of calling_module.
2013-03-21(Maint) Extract constant strings as constantsAndrew Parker1-10/+15
2013-02-25(#14985) Preserve casing on looked up valuesAndrew Parker1-3/+3
The initial fix for looked up values downcased everything that was being returned. This causes problems when the data is not a string that the previous behavior was to only do this for the calling_class and calling_module. This commit us returns to that behavior.
2013-02-25(#14985) Ensure hostclass finder is privateAndrew Parker1-10/+12
The nested definition of the recurse_for_hostclass method caused that method to be created lazily and as a public method. By pulling it out to be declared outside the calling method it can be made private and created only once. It has also been renamed to show the intention instead of the mechanism (recursion).
2013-02-25(#14985) Fix exception when nil is returned from inner scopeAvishai Ish-Shalom1-1/+1
2013-02-25(#14985) Fix test, return downcase values and check for nil scope.sourceAvishai Ish-Shalom1-2/+2
2013-02-25(#14985) Fix hiera lookup for calling_module and calling_classAvishai Ish-Shalom1-2/+12
2012-06-10(maint) Follow Puppet Labs style guide + code cleanupKelsey Hightower1-39/+40
The hiera-puppet code base now uses two space indentation. This patch also removes unnecessary calls to `Hiera::Scope`, which is no longer required because core Puppet's scope object allows variable lookup via the `[]` method. This commit includes updated specs.
2011-10-05added volcanes patch to allow calling_module and calling_class to be ↵Craig Dunn1-3/+11
evaluated in scope
2011-06-11Add a hiera_include() function and update exampleR.I.Pienaar1-0/+4
2011-06-11Add array search supportR.I.Pienaar1-0/+8
2011-06-04Add more tests, fix more bugsR.I.Pienaar1-1/+1
2011-06-04Add a puppet backend that impliments Nigels designR.I.Pienaar1-4/+10
2011-06-04Add a hash like wrapper around puppet scopeR.I.Pienaar1-0/+15