module

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

install_command(executable : String, arguments : Array(String), name : String) : String
Source
installed?(probe_output : String) : Bool

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.

Source
probe_command(executable : String, arguments : Array(String), name : String) : String
Source
resolve_executable(executable : String | Nil, virtualenv : String | Nil) : String

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).

Source
state_arguments(state : String | Nil) : String

arguments before the package name: --upgrade when state=latest (the real module's executable_arguments), then the installed probe's extra --dry-run.

Source
venv_activate_path(virtualenv : String) : String
Source
venv_create_command(virtualenv_command : String, virtualenv : String, site_packages : Bool) : String
Source