Revert "use global variable for new_resource"

This reverts commit 47b5c8351ed7ef0b42d1e94d9a867d9c6a6045f1.

Conflicts:
	providers/model.rb
use new_resource instead of @new_resource
Use Foodcritic's built-in Rake task rather than shelling out.
http://acrmp.github.io/foodcritic/#build-framework-integration
https://github.com/travis-ci/travis-cookbooks/blob/master/Rakefile