Created
March 16, 2014 23:58
-
-
Save darron/9591665 to your computer and use it in GitHub Desktop.
How I create new cookbooks: `newcook $name`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newcook() { | |
if [ $1 ] ; then | |
git clone https://github.com/darron/skeleton-cookbook.git $1-cookbook | |
cd $1-cookbook; rm -rf .git/ | |
egrep -r "skeleton" * .kitchen.yml | cut -d ':' -f 1 | sort | uniq | xargs -n 1 sed -i '' "s/skeleton/$1/g" | |
git clone https://github.com/customink-webops/foodcritic-rules foodcritic/customink && rm -rf foodcritic/customink/.git | |
git clone https://github.com/etsy/foodcritic-rules foodcritic/etsy && rm -rf foodcritic/etsy/.git | |
git init . && git add . && git commit -a -m 'First commit.' | |
else | |
echo "Need the name of the cookbook." | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment