trabian/chef-forever — pull request #3 by coderjun (2014-11-12 21:17:37+00:00)
Title: migrating away from deprecated npm dependency to nodejs dependency

Hello,

First, thanks for creating this cookbook, very useful!

I'm leveraging this cookbook from the supermarket and ran into some errors when trying to upload it to my chef server:

`Cookbook forever version 0.1.1 successfully installed
Installing npm to /chef-repo/cookbooks
Checking out the master branch.
Creating pristine copy branch chef-vendor-cpm
WARNING: DEPRECATION: This cookbook has been deprecated. It has been replaced by nodejs.
WARNING: Use --force to force download deprecated cookbook.
Removing pre-existing version.
Uncompressing npm version 0.1.2.
ERROR: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'`

The fix seemed to be to update the code to leverage nodejs instead of npm which had been deprecated.

I've:
* Updated the code to use `nodejs_npm` instead of `npm_package` in default.rb
* Updated the version number to 0.1.2
* Updated the dependency in metatdata.rb
* Added the metadata.json which existed in the supermarket version: https://supermarket.getchef.com/cookbooks/forever