[provisioning] Add rust and pastel

This commit is contained in:
Correl Roush 2019-08-29 14:44:34 -04:00
parent c27814ac8c
commit 693ca30b28
2 changed files with 28 additions and 0 deletions

6
recipes/pastel Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# Description: A CLI utility to generate, analyze, convert, and manipulate colors
set -e
_recipe rust
_cargo pastel

22
recipes/rust Normal file
View file

@ -0,0 +1,22 @@
#!/bin/bash
# Description: The Rust programming language
set -e
case $_PLATFORM in
darwin)
_recipe brew
_recipe _path
_brew rust
_path "$HOME/.cargo/bin"
;;
esac
function _cargo {
local pkg=$1
if ! cargo install --list | grep "^$pkg " >/dev/null; then
_run "[cargo] Install $pkg" cargo install $pkg
else
echo "[cargo] $pkg is already installed, skipping."
fi
}