Project

General

Profile

« Previous | Next » 

Revision 1ce43f91

Added by Ohad Levy almost 12 years ago

  • ID 1ce43f91fee51a7539cd3751799fe0d3d560d743

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

  • added
  • modified
  • copied
  • renamed
  • deleted