-
-
Save eliduke/2686537 to your computer and use it in GitHub Desktop.
Spork + Guard + Bootstrap 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
run "echo TODO > README" | |
run "rvm use 1.9.2" | |
run "rvm gemset create #{app_name}" | |
create_file ".rvmrc", "rvm use 1.9.2@#{app_name}" | |
gem "rspec-rails" , :group => [ :development, :test ] | |
gem "guard-rspec" , :group => [ :development, :test ] | |
gem "spork", "> 0.9.0.rc" , :group => [ :development, :test ] | |
gem "guard-spork" , :group => [ :development, :test ] | |
gem "factory_girl_rails" , :group => [ :development, :test ] | |
gem "capybara" , :group => [ :development, :test ] | |
gem 'vcr' , :group => [ :development, :test ] | |
gem 'fakeweb' , :group => [ :development, :test ] | |
gem 'capybara-mechanize' , :group => [ :development, :test ] | |
gem 'growl' , :group => [ :development, :test ] | |
gem 'launchy' , :group => [ :development, :test ] | |
use_twitter = false | |
if yes?("Would you like to install Twitter Boostrap?") | |
gem 'twitter-bootstrap-rails', :group => [ :assets ] | |
use_twitter = true | |
end | |
run "bundle install" | |
generate "rspec:install" | |
if use_twitter | |
generate "bootstrap:install" | |
generate "bootstrap:layout application fixed" | |
end | |
run "guard init spork" | |
run "guard init rspec" | |
run "spork --bootstrap" | |
puts "Please Configure spec_helper.rb for spork" | |
run "rake db:create:all" | |
remove_file 'public/index.html' | |
remove_file 'public/images/rails.png' | |
remove_file 'README' | |
inject_into_file 'Guardfile', :after => ":version => 2" do | |
", :cli => '--drb'" | |
end | |
git :init | |
git :add => ".", :commit => "-m 'initial commit.'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment