module

Krikri::PluginHelpers::Apache2Module

Apache2Module - pure logic shared by the apache2_module plugin, unit-testable without I/O.

Class methods

create_identifier(name : String) : String

Mirrors real community.general.apache2_module's create_apache_identifier: by convention an a2enmod name shows up in apache2ctl -M output as "<name>_module", but a few modules don't follow it. Order matters (text workarounds all run before the regex ones, and "shib" precedes "shib2", so "shib2" maps to mod_shib too).

Source