Skip to content

Bug/2.7.x/7991 and 4549 autoloading for custom functions#124

Merged
slippycheeze merged 1 commit intopuppetlabs:2.7.xfrom
slippycheeze:bug/2.7.x/7991-and-4549-autoloading-for-custom-functions
Sep 16, 2011
Merged

Bug/2.7.x/7991 and 4549 autoloading for custom functions#124
slippycheeze merged 1 commit intopuppetlabs:2.7.xfrom
slippycheeze:bug/2.7.x/7991-and-4549-autoloading-for-custom-functions

Conversation

@slippycheeze
Copy link
Copy Markdown
Contributor

This commit fixed an earlier bug, but was somewhere lost from the main tree after Matt announced it merged. I am pushing it back in, as it fixes a real problem, and is current.

Only a small subset of Puppet functions were available on the scope in
templates. This had people doing workarounds like:

inline_template("<%= Puppet::Parser::Functions.autoloader.loadall; scope.function_extlookup(['hello world']) %>")

Rather than need to know these workarounds and need to load all
templates, the scope object now uses method_missing to find the function
if avaialable.

Paired-with: Nick Lewis nick@puppetlabs.com

Only a small subset of Puppet functions were available on the scope in
templates.  This had people doing workarounds like:

    inline_template("<%= Puppet::Parser::Functions.autoloader.loadall; scope.function_extlookup(['hello world']) %>")

Rather than need to know these workarounds and need to load all
templates, the scope object now uses method_missing to find the function
if avaialable.

Paired-with: Nick Lewis <nick@puppetlabs.com>
slippycheeze added a commit that referenced this pull request Sep 16, 2011
…utoloading-for-custom-functions

Bug/2.7.x/7991 and 4549 autoloading for custom functions

Merged for the second time, because something in the murky past ate the original merge into the main tree, done by mmrobins.
@slippycheeze slippycheeze merged commit 8012a7b into puppetlabs:2.7.x Sep 16, 2011
melissa pushed a commit to melissa/puppet that referenced this pull request Mar 30, 2018
(PCP-28) Add interpreter field to module config options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant