Created
August 28, 2014 00:04
-
-
Save nbrew/5a2202e087c54f2f2ac2 to your computer and use it in GitHub Desktop.
Chef knife download and untar cookbook function
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
function knife_dl() { | |
local packages="$@" | |
cd /root/chef-repo/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