Krikri::PluginHelpers::GemCommand
GemCommand - pure logic for building gem install/gem uninstall
command lines. No I/O here - the plugin itself runs the resulting
commands. Verified against real community.general gem.py's own
install/uninstall/common_opts source directly (flag order
included), not assumed from ansible-doc.
Class methods
install_command(executable : String, name : String, version : String | Nil, user_install : Bool, bindir : String | Nil, repository : String | Nil, include_dependencies : Bool, norc : Bool) : String
SourceReal community.general gem.py's get_installed_versions parser for
gem list / gem list --remote output: each line matching
/\S+\s+((?:default: )?(.+))/, versions split on ", ", and only
the first token of each kept (strips platform suffixes like
"x86_64-linux"). The module's idempotency check is an exact-string
membership test of the version param against this list.