Created
June 2, 2011 13:57
-
-
Save thechrisoshow/1004481 to your computer and use it in GitHub Desktop.
Rails Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |
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
Could not find gem 'ruby-debug19 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
gemfile cucumber
gemfile cucumber-rails
generate cucumber:install
Could not find gem 'ruby-debug19 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
gemfile capybara
gemfile pickle
generate pickle --paths
Could not find gem 'ruby-debug19 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
Would you like to install clearance? y
gemfile clearance
generate clearance:install
Could not find gem 'clearance (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
generate clearance:features
Could not find gem 'clearance (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
run git init from "."
Initialized empty Git repository in /Users/andrew/work/_spikes/thud/.git/
run git add . from "."
run git commit -m First commit from "."
error: pathspec 'commit' did not match any file(s) known to git.