Skip to content

Instantly share code, notes, and snippets.

@maxim
Created June 12, 2013 20:39
Show Gist options
  • Select an option

  • Save maxim/5768923 to your computer and use it in GitHub Desktop.

Select an option

Save maxim/5768923 to your computer and use it in GitHub Desktop.
Install application cookbook into the kitchen
#!/usr/bin/env bash
die() {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Single cookbook path argument required"
src_path=$1
cur_path=`pwd`
cd cookbooks
dst_path=`pwd`
cd $cur_path && cd $src_path && berks install --path $dst_path && cd $cur_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment