Generate network_config and network_route through filemapper hooks #14

Merged
benvin merged 1 commits from benvin/gentypes-network into main 2026-11-09 22:50:06 +11:00
Member

network_config and network_route providers include filemapper, whose self.included extends ClassMethods, defines property methods and runs an initvars that resets defaultfor and commands; redhat/sles also build regexes by interpolating Regexp constants. w10k skipped both types.

  • run a module's self.included on the including provider: klass.extend and argument-less klass.x calls
  • let an extended DSL method stand in for the original only when it is super plus ivars puppet never reads
  • add &&, ||, !, respond_to?, is_a?, intern, Hash.new and block-param reassignment to the evaluator
  • compose interpolated regex literals, gated by an Onigmo subset check
  • add filemapper 4.0.0 and network 2.2.1 fixtures; bump gentypes.Version to 8
network_config and network_route providers include filemapper, whose `self.included` extends ClassMethods, defines property methods and runs an `initvars` that resets `defaultfor` and `commands`; redhat/sles also build regexes by interpolating Regexp constants. w10k skipped both types. - run a module's `self.included` on the including provider: `klass.extend` and argument-less `klass.x` calls - let an extended DSL method stand in for the original only when it is `super` plus ivars puppet never reads - add `&&`, `||`, `!`, `respond_to?`, `is_a?`, `intern`, `Hash.new` and block-param reassignment to the evaluator - compose interpolated regex literals, gated by an Onigmo subset check - add filemapper 4.0.0 and network 2.2.1 fixtures; bump `gentypes.Version` to 8
benvin changed target branch from benvin/gentypes-evaluator to main 2026-11-09 22:49:49 +11:00
benvin added 1 commit 2026-11-09 22:49:49 +11:00
Evaluate mixin included hooks and interpolated regexes
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
f2d3112d60
Run a module's self.included on the including provider: extend adds singleton
methods, a super-wrapping initvars resets defaults and commands where called,
and inlined define loops add property methods. Compose interpolated regex
literals and accept them only when an Onigmo subset check passes. Generates
network_config and network_route.
benvin merged commit 69ceccf110 into main 2026-11-09 22:50:06 +11:00
benvin deleted branch benvin/gentypes-network 2026-11-09 22:50:06 +11:00
This repo is archived. You cannot comment on pull requests.