class MStrap::RuntimeManagers::Rustup
- MStrap::RuntimeManagers::Rustup
- MStrap::RuntimeManager
- Reference
- Object
Defined in:
mstrap/runtime_managers/rustup.crInstance Method Summary
- #current_version(language_name : String) : String | Nil
-
#has_plugin?(language_name : String) : Bool
Returns whether the mise plugin has been installed for a language runtime or not
- #install_plugin(language_name : String) : Bool
- #install_version(language_name : String, version : String) : Bool
-
#installed_versions(language_name : String) : Array(String)
Returns a list of the versions of the language runtime installed by mise.
-
#latest_version(language_name : String) : String
Rustup doesn't support querying this, but "stable" is probably safe
-
#plugin_name(language_name : String) : String | Nil
Rust is the only language managed by rustup, so this is always "rust"!
-
#runtime_exec(language_name : String, command : String, args : Array(String) | Nil = nil, runtime_version : String | Nil = nil)
Execute a command using a specific language runtime version
- #set_global_version(language_name, version : String) : Bool
- #set_version(language_name : String, version : String | Nil) : Bool
- #shell_activation(shell_name : String) : String
- #supported_languages : Array(String)
Instance methods inherited from class MStrap::RuntimeManager
current_version(language_name : String) : String | Nil
current_version,
has_plugin?(language_name : String) : Bool
has_plugin?,
install_plugin(language_name : String) : Bool
install_plugin,
install_version(language_name : String, version : String) : Bool
install_version,
installed_versions(language_name : String) : Array(String)
installed_versions,
latest_version(language_name : String) : String
latest_version,
name : String
name,
runtime_exec(language_name : String, command : String, args : Array(String) | Nil = nil, runtime_version : String | Nil = nil)
runtime_exec,
set_global_version(language_name : String, version : String) : Bool
set_global_version,
set_version(language_name : String, version : String | Nil) : Bool
set_version,
shell_activation(shell_name : String) : String
shell_activation,
supported_languages : Array(String)
supported_languages
Class methods inherited from class MStrap::RuntimeManager
for(runtime_manager_name : String)
for
Instance methods inherited from module MStrap::DSL::System
cmd(env : Hash | Nil, command : String, args : Array(String) | Nil, **kwargs)
cmd,
has_command?(command_name : String, **kwargs) : Bool
has_command?
Instance methods inherited from module MStrap::DSL::Logging
log(msg)
log,
logc(msg)
logc,
logd(msg)
logd,
logn(msg)
logn,
logw(msg)
logw,
success(msg)
success
Instance Method Detail
def has_plugin?(language_name : String) : Bool
#
Returns whether the mise plugin has been installed for a language runtime or not
def installed_versions(language_name : String) : Array(String)
#
Returns a list of the versions of the language runtime installed by mise.
def latest_version(language_name : String) : String
#
Rustup doesn't support querying this, but "stable" is probably safe
def plugin_name(language_name : String) : String | Nil
#
Rust is the only language managed by rustup, so this is always "rust"!
def runtime_exec(language_name : String, command : String, args : Array(String) | Nil = nil, runtime_version : String | Nil = nil)
#
Execute a command using a specific language runtime version