Created
November 22, 2009 23:41
-
-
Save erotte/240793 to your computer and use it in GitHub Desktop.
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" | |
generate :nifty_layout | |
puts "configuring gems" | |
gem "sqlite3-ruby", :lib => "sqlite3" | |
gem 'haml' | |
gem "fastercsv", :lib => false | |
gem 'vlad', :lib => false | |
gem 'vlad-git', :lib => false | |
gem 'formtastic', :lib => false | |
gem 'rspec', :lib => false | |
gem 'rspec-rails', :lib => false | |
gem 'cucumber', :lib => false | |
gem 'webrat', :lib => false | |
gem "nokogiri", :lib => false | |
if yes?("Do you want to install the listed gems with rake gems:install and generate rspec/cucumber skeleton?") | |
rake "gems:install" | |
generate :rspec | |
generate :cucumber | |
end | |
if yes?("Do you want to use the jrails plugin?") | |
plugin "jrails", :git => "git://github.com/aaronchi/jrails.git" | |
end | |
run "cp config/database.yml config/example_database.yml" | |
if yes?("Do you want to use git?") | |
git :init | |
file ".gitignore", <<-END | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
END | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
git :add => ".", :commit => "-m 'initial commit'" | |
end | |
if yes?("Do you want to use nifty_authentification? (Only works with accessible Database (SQLite))") | |
name = ask("What do you want a user to be called?") | |
generate :nifty_authentication, name | |
rake "db:migrate" | |
git :add => ".", :commit => "-m 'adding authentication'" | |
generate :controller, "welcome index" | |
route "map.root :controller => 'welcome'" | |
git :rm => "public/index.html" | |
git :add => ".", :commit => "-m 'adding welcome controller'" | |
end | |
if yes?("Do you want to run the server?") | |
run 'mate . ; open http://localhost:3000; ./script/server' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment