Download Source and Binary Files to Chef Cache #67

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
@markolson

The application I'm working on has an end-goal of being able to be installed via chef-solo off of a USB key. To that end, we have to make sure that all the packages, tar files, etc.. that our cookbooks download are placed into Chef's Cache (normally /var/chef/cache). This changes the source and binary recipes to do that, as well as pulling out a raise_if_checksum_mismatch method to a helper library so that source and binary can both use it.

I also changed around some of the logic around install_not_needed, changing it to use Mixlib:: ShellOut (foodcritic was complaining about that) and using a notifies block to run the SHA256 code only when necessarily. There's still more opportunity to pull out the checksumming and 'already installed' functionality, but it's Good Enough(tm) right now.

markolson added some commits Nov 24, 2013

Pass foodcritic tests
* Stop using ` to exec system code, using Mixlib::ShellOut instead.
* Raise exceptions if the 'source' download SHA256 doesn't match expected value.
@mdxp

This comment has been minimized.

Show comment
Hide comment
@mdxp

mdxp Sep 16, 2014

Owner

The development of the nodejs cookbook has been move here: https://github.com/redguide/nodejs
Your PR functionality might have been already included in the new repo. If not, please resubmit it there. Thanks!

Owner

mdxp commented Sep 16, 2014

The development of the nodejs cookbook has been move here: https://github.com/redguide/nodejs
Your PR functionality might have been already included in the new repo. If not, please resubmit it there. Thanks!

@mdxp mdxp closed this Sep 16, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment