HomePhorge

[#4716] ResourceTypeAPI exposes implementation details that are likely to change
f95006148c3aUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

[#4716] ResourceTypeAPI exposes implementation details that are likely to change

Made the following modifications to ResourceTypeAPI:

(1) returned nil from “define”, “hostclass”, and “node”.

(2) renamed “mk_resource_type” and “munge_type_arguments” to
mk_resource_type” and “munge_type_arguments” to discourage
customers from calling them.

(3) Made ResourceTypeAPI a class rather than a module, and changed the
parser to evaluate the contents of pure ruby manifests using a
instances of this class.

(4) Changed ResourceTypeAPI to insert newly instantiated types into
Thread.current[:known_resource_types] rather than the default
environment's known_resource_types.

This effectively backports the fix for issue #4657 to 2.6.x.

Also backported the new spec tests from #4657.

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
Markus Roberts <Markus@reality.com>Committed on Sep 23 2010, 6:11 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8ff4b9a0b163: Fixed #4819 - corrected cron documentation
Branches
Unknown
Tags
Unknown

Event Timeline