Skip to content

Instantly share code, notes, and snippets.

@jm
Created October 22, 2008 16:27
Show Gist options
  • Save jm/18685 to your computer and use it in GitHub Desktop.
Save jm/18685 to your computer and use it in GitHub Desktop.
~/code/rg > ruby bin/rg hey -d mysql -t thoughtbot
generating app
applying template
vendoring gem mislav-will_paginate
vendoring gem RedCloth
vendoring gem mocha
vendoring gem thoughtbot-factory_girl
vendoring gem thoughtbot-shoulda
vendoring gem quietbacktrace
installing plugin squirrel
installing plugin hoptoad_notifier
installing plugin limerick_rake
installing plugin mile_marker
adding initializer hoptoad.rb
adding initializer action_mailer_configs.rb
adding initializer requires.rb
adding initializer time_formats.rb
template(:thoughtbot) do
gem 'mislav-will_paginate'
gem 'RedCloth'
gem 'mocha'
gem 'thoughtbot-factory_girl'
gem 'thoughtbot-shoulda'
gem 'quietbacktrace'
plugin 'squirrel', :git => 'git://github.com/thoughtbot/squirrel.git'
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
plugin 'limerick_rake', :git => 'git://github.com/thoughtbot/limerick_rake.git'
plugin 'mile_marker', :git => 'git://github.com/thoughtbot/mile_marker.git'
initializer 'hoptoad.rb' do
HoptoadNotifier.configure do |config|
config.api_key = 'HOPTOAD-KEY'
end
end
initializer 'action_mailer_configs.rb' do
ActionMailer::Base.smtp_settings = {
:address => "smtp.thoughtbot.com",
:port => 25,
:domain => "thoughtbot.com"
}
end
initializer 'requires.rb' do
require 'redcloth'
Dir[File.join(RAILS_ROOT, 'lib', 'extensions', '*.rb')].each do |f|
require f
end
Dir[File.join(RAILS_ROOT, 'lib', '*.rb')].each do |f|
require f
end
# Rails 2 doesn't like mocks
Dir[File.join(RAILS_ROOT, 'test', 'mocks', RAILS_ENV, '*.rb')].each do |f|
require f
end
end
initializer 'time_formats.rb' do
# Example time formats
{ :short_date => "%x", :long_date => "%a, %b %d, %Y" }.each do |k, v|
ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.update(k => v)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment