Skip to content

Instantly share code, notes, and snippets.

View zbelzer's full-sized avatar

Zachary Belzer zbelzer

  • IntegraCredit
  • Chicago
View GitHub Profile
class ActiveSupport::TestCase
# Drop all columns after each test case.
def teardown
MongoMapper.database.collections.each do |coll|
coll.remove unless coll.name =~ /^system\./
end
end
# Make sure that each test case has a teardown
# method to clear the db after each test.
merb : worker (port 4000) ~ Starting Thin at port 4000
merb : worker (port 4000) ~ Using Thin adapter on host 0.0.0.0 and port 4000.
merb : worker (port 4000) ~ Successfully bound to port 4000
INFO: Compiling routes... (totally normal to see 'Cannot find resource model')
~ Loaded slice 'ChefServerApi' ...
~ Compiling routes...
~ Could not find resource model User
~ Could not find resource model Node
~ Could not find resource model Role
~ Could not find resource model Search
log_level :info
log_location STDOUT
node_name 'zbelzer'
client_key '/root/.chef/zbelzer.pem'
validation_client_name 'chef-validator'
validation_key '/root/.chef/chef-validator.pem'
chef_server_url 'http://ec2-204-236-254-87.compute-1.amazonaws.com:4000'
cache_type 'BasicFile'
cache_options( :path => '/root/.chef/checksums' )
cookbook_path [ './cookbooks', './site-cookbooks' ]
rake install
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `initialize': Neither PUB key nor PRIV key:: not enough data (OpenSSL::PKey::RSAError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:121:in `put_rest'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/role.rb:249:in `save'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife/role_from_file.rb:32:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/application/knife.rb:110:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/knife:26
rake install
/usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `initialize': Neither PUB key nor PRIV key:: not enough data (OpenSSL::PKey::RSAError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `new'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:202:in `run_request'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/rest.rb:121:in `put_rest'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/role.rb:249:in `save'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/knife/role_from_file.rb:32:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/lib/chef/application/knife.rb:110:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.6/bin/knife:26