Created
August 28, 2014 22:00
-
-
Save ankurcha/a164393534a8b489fe80 to your computer and use it in GitHub Desktop.
Function to download and extract cookbook
This file contains hidden or 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
| function knife_dl() { | |
| local packages="$@" | |
| cd ~/chef/cookbooks | |
| for c in ${packages}; do | |
| knife cookbook site download ${c}; | |
| tar zxf ${c}*.tar.gz; | |
| rm ${c}-*.tar.gz; | |
| done | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment