HomePhorge

Check that function loading worked correctly.
536b68c31ca7Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Check that function loading worked correctly.

In some odd circumstances - typically, just development errors - you can wind
up in a world where a function correctly loads but isn't available.

This ensures that the method is defined as expected and raises a clear, quick
error if not. The alternative is an unclear stack overflow raised because we
recurse forever through method_missing.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Conflicts:
lib/puppet/parser/scope.rb

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
Patrick Carlisle <patrick@puppetlabs.com>Committed on Aug 9 2012, 12:30 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUabc7885c6d18: Avoid stubbing Thread::new due to issues in newer mocha
Branches
Unknown
Tags
Unknown

Event Timeline

Patrick Carlisle <patrick@puppetlabs.com> committed rPU536b68c31ca7: Check that function loading worked correctly. (authored by Daniel Pittman <daniel@puppetlabs.com>).Aug 9 2012, 12:30 AM