MStrap::Runtimes::Crystal
Inherits MStrap::Runtime / MStrap::DSL / MStrap::DSL::System / MStrap::DSL::Logging / Reference / Object
Crystal runtime management implmentation. It contains methods for interacting with Crystal via the chosen runtime manager and bootstrapping a Crystal project based on conventions.
Instance methods
current_version
Returns the version of the language runtime used by the current directory or specified by the environment.
NOTE: This will not traverse parent directories to find versions files.
install_packages(packages : Array(Defs::PkgDef), runtime_version : String | Nil = nil) : Bool
Installs global packages for the runtime with an optional version specification, and optional runtime version.
NOTE: The version specification is dependent upon the underlying package manager and is passed verbatim.