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'"
@adonaldson
Copy link

 gemfile    mysql2
 gemfile    sqlite3
 gemfile    ruby-debug19
 gemfile    mongrel
 gemfile    factory_girl_rails
 gemfile    rspec
 gemfile    rspec-rails
generate    rspec:install

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.

@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