Skip to content

Instantly share code, notes, and snippets.

# Straining 'my_cookbook (v0.1.0)'
…TRUNCATED OUTPUT…
knife test | SUCCESS!
…TRUNCATED OUTPUT…
rubocop | SUCCESS!
…TRUNCATED OUTPUT…
foodcritic | SUCCESS!
…TRUNCATED OUTPUT…
chefspec | SUCCESS!
…TRUNCATED OUTPUT…
Using my_cookbook (0.1.0) from metadata
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.1)
…TRUNCATED OUTPUT…
Installing chef (11.8.0)
Installing fauxhai (2.0.1)
Installing rspec-core (2.14.7)
Installing rspec-expectations (2.14.5)
Installing rspec-mocks (2.14.5)
* Initializing Cookbook
* Initializing Berkshelf
* Initializing Vagranfile
* Initializing Strainer
* Initializing Knife
* Initializing Rubocop
* Initializing Food Critic
* Initializing Chef Spec
Creating ./cookbooks/my_cookbook/test/unit/spec/spec_helper.rb
Creating ./cookbooks/my_cookbook/test/unit/spec/default_spec.rb
@mmarschall
mmarschall / gem install meez
Created February 4, 2014 20:06
Shell output of gem install meez
Fetching: berkshelf-2.0.13.gem (100%)
Fetching: meez-0.0.8.gem (100%)
Successfully installed berkshelf-2.0.13
Successfully installed meez-0.0.8
2 gems installed
@mmarschall
mmarschall / upload_data_bags.rake
Created November 8, 2010 15:26
Rake task for uploading all data bags to the chef server using knife
desc "Upload all json files from data bag BAG"
task :upload_data_bags do
bag = ENV['BAG'] || raise("Usage: rake upload_data_bags BAG=apps")
Dir[File.join(File.dirname(__FILE__), 'data_bags', bag, '**')].each do |file|
puts `knife data bag from file #{bag} #{File.basename(file)}`
end
end
# initializer
Resque::Failure::Multiple.configure do |config|
config.classes = [Resque::Failure::Redis, Resque::Failure::Notifier]
end
#lib/resque/failure/notifier.rb
#===============================