module

Krikri::SystemdCliFlags

Pure decision logic for the systemd plugin's two boolean systemctl CLI flags, factored into its own file (like SystemdEnabledState) so a spec can require it directly without triggering plugins/systemd.cr's bottom-of-file STDIN entry point.

  • force (bool, no default): real Ansible's own systemd module prepends --force to its systemctl invocation when set - here applied to the enable/disable/mask/unmask calls, the commands where it actually changes behavior.
  • no_block (bool, default false): --no-block on the state-changing calls (start/stop/restart/reload) so systemctl returns immediately instead of waiting for the unit to reach the target state.

Class methods

force_flag(force : String | Nil) : String
Source
no_block_flag(no_block : String | Nil) : String
Source