Defined Type: rustup::toolchain
- Defined in:
- manifests/toolchain.pp
Summary
Install a toolchainOverview
The name should start with the name of the ‘rustup` resource (normally the name of the user) followed by a colon and a space, then the toolchain. For example:
“‘puppet rustup::toolchain { ’daniel: stable’: } “‘
27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'manifests/toolchain.pp', line 27
define rustup::toolchain (
Enum[present, latest, absent] $ensure = present,
String[1] $rustup = $name.split(': ')[0],
String[1] $toolchain = $name.split(': ')[1],
Rustup::Profile $profile = 'default',
) {
Rustup_internal <| title == $rustup |> {
toolchains +> [{
ensure => $ensure,
name => $toolchain,
profile => $profile,
}],
}
}
|