small pixel drawing of a pufferfish dotfiles

bin/docc-restart

1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh

app="$1"
contexts="bolt dash dust flux kiwi luca navy nova puff taro vega wolf"

if [ -z "$app" ]; then
  printf "%s\n" "app name required"
  exit 1
fi

for i in $contexts; do
  # vault login
  docc --context "$i" -n chef restart "$app"
done