Skip to content

Instantly share code, notes, and snippets.

@thechrisoshow
Created June 2, 2011 13:57
Show Gist options
  • Save thechrisoshow/1004481 to your computer and use it in GitHub Desktop.
Save thechrisoshow/1004481 to your computer and use it in GitHub Desktop.
Rails Template
create_file '.rvmrc' do
'echo "RVM: Switching to Ruby 1.9.2"'
'rvm 1.9.2'
end
append_to_file '.gitignore', "*.sw?"
gem('formtastic')
gem('sass')
gem("mysql2", :group => "production")
gem("sqlite3", :group => "development")
gem("ruby-debug19", :group => "development")
gem("unicorn", :group => "development")
gem('factory_girl_rails', :group => "test")
gem('rspec', :group => "test")
gem("rspec-rails", :group => "test")
generate("rspec:install")
gem("cucumber", :group => "cucumber")
gem("cucumber-rails", :group => "cucumber")
generate("cucumber:install")
gem("capybara", :group => "cucumber")
gem("pickle", :group => "cucumber")
generate("pickle --paths")
if yes?("Would you like to install clearance?")
gem("clearance")
generate("clearance:install")
generate("clearance:features")
end
git :init
git :add => "."
git :commit => "-m 'First commit'"
@deepak
Copy link

deepak commented Aug 27, 2012

have to escape the git commit message
eg:

git :commit => %Q{ -m 'First commit' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment