Skip to content

Instantly share code, notes, and snippets.

@sarogers
Created February 17, 2014 16:30
Show Gist options
  • Save sarogers/9053899 to your computer and use it in GitHub Desktop.
Save sarogers/9053899 to your computer and use it in GitHub Desktop.
@after_blocks = []
def after_bundler(&block); @after_blocks << block; end
gem_group :development, :test do
gem "rspec-rails"
gem "factory_girl_rails"
gem "pry"
end
after_bundler do
generate 'rspec:install'
run 'rm -rf ./test'
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }
end
run 'bundle install --without production'
# Run after bundler callbacks
@after_blocks.each{ |b| b.call }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment