Krikri::PluginHelpers::EasyInstall
EasyInstall - pure logic for the easy_install plugin: the
easy_install command construction and the installed check the real
module uses (--dry-run output containing "Downloading" means the
package is NOT installed). Split out so this logic is unit-spec-able
(execution needs a real host with easy_install, which no spec
environment has).
Class methods
The real module's _is_package_installed: "Downloading" in the --dry-run output means easy_install would fetch it, i.e. it is not installed.
executable resolution: explicit absolute path wins, an explicit basename is searched with the virtualenv's bin dir first, else plain "easy_install" (the real module's _get_easy_install).
arguments before the package name: --upgrade when state=latest (the real module's executable_arguments), then the installed probe's extra --dry-run.