Use puppet/parser for a first class analysis of the class definitions. Using regexes would have been a nightmare.
Exports a "params" sub-object whose keys are the parameter names and values are a best-effort convertion from AST leaves to native ruby types, before being exported as native JSON values.
Compatible with Puppet 2.6 and 2.7, at least.
Tests: - Manifest must now parse in order to extract classes from it, hence the fix in the test. - Functional tests
Export arguments of parameterized classes
Use puppet/parser for a first class analysis of the class definitions.
Using regexes would have been a nightmare.
Exports a "params" sub-object whose keys are the parameter names and
values are a best-effort convertion from AST leaves to native ruby
types, before being exported as native JSON values.
Compatible with Puppet 2.6 and 2.7, at least.
Tests:
- Manifest must now parse in order to extract classes from it,
hence the fix in the test.
- Functional tests