Generate openldap types through trailing-dot chains and File.join arrays #17

Merged
benvin merged 1 commits from benvin/gentypes-openldap into main 2026-11-09 23:01:15 +11:00
Member

puppet-openldap chains Puppet::Type. / type(:x). / provide(...) across lines ending in a dot and requires its base provider through File.join(File.dirname(__FILE__), %w[.. openldap]), so all seven openldap types skip today.

  • continue a line that ends in a method-call dot, as Ruby does
  • join %w and literal array arguments of File.join recursively, with Ruby's separator rules
  • vendor the openldap fixtures and bump gentypes.Version to 11
puppet-openldap chains `Puppet::Type.` / `type(:x).` / `provide(...)` across lines ending in a dot and requires its base provider through `File.join(File.dirname(__FILE__), %w[.. openldap])`, so all seven openldap types skip today. - continue a line that ends in a method-call dot, as Ruby does - join `%w` and literal array arguments of `File.join` recursively, with Ruby's separator rules - vendor the openldap fixtures and bump gentypes.Version to 11
benvin changed target branch from benvin/gentypes-ceph to main 2026-11-09 22:56:27 +11:00
benvin added 1 commit 2026-11-09 22:56:27 +11:00
Continue lines after a trailing dot and join File.join arrays
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
d0b6a12bc4
Ruby continues a statement whose line ends in a method-call dot, and File.join
joins array arguments recursively with its own separator rules. Generates the
seven openldap types.
benvin merged commit 8bba3aac5e into main 2026-11-09 23:01:15 +11:00
benvin deleted branch benvin/gentypes-openldap 2026-11-09 23:01:15 +11:00
This repo is archived. You cannot comment on pull requests.