Last active
December 27, 2015 01:09
-
-
Save m5rk/7243018 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
git :init | |
git add: "." | |
git commit: "-a -m 'Initial commit'" | |
gem_group :development, :test do | |
gem 'rspec-rails' | |
end | |
gem_group :test do | |
gem 'shoulda-matchers' | |
end | |
run('bundle install') | |
git add: "." | |
git commit: "-a -m 'Install rspec et al'" | |
file '.ruby-version', <<-CODE | |
2.0.0-p247 | |
CODE | |
file '.ruby-gemset', <<-CODE | |
#{File.basename(Dir.pwd)} | |
CODE | |
git add: "." | |
git commit: "-a -m 'Add ruby project files'" | |
run('rails generate rspec:install') | |
git add: "." | |
git commit: "-a -m 'rails generate rspec:install'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment