module

Krikri::PluginHelpers::Cpanm

Cpanm - pure logic for the cpanm plugin: the cpanm argv and the installed probe of community.general.cpanm, split out so it is unit-spec-able without a Perl toolchain.

Class methods

changed?(rc : Int32, stdout : String, stderr : String) : Bool
Source
install_argv(executable : String, spec : String, notest : Bool, locallib : String | Nil, mirror : String | Nil, mirror_only : Bool, installdeps : Bool) : Array(String)
Source
probe_command(name : String, version : String | Nil, locallib : String | Nil) : String | Nil

The module's _is_package_installed: a tarball is never "installed", otherwise perl -le 'use <name> <version>; print "OK";' succeeding.

Source