Created
May 2, 2010 02:58
-
-
Save alobato/386853 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
!!! XML | |
!!! | |
%html | |
%head | |
%title | |
= javascript_include_merged :base | |
= stylesheet_link_merged :base | |
%body= yield |
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 | |
run "rm README public/index.html public/javascripts/*" | |
file '.gitignore', <<-END | |
tmp/**/* | |
.DS_Store | |
log/* | |
db/schema.rb | |
db/*.sqlite3 | |
coverage | |
solr | |
public/cache | |
public/system | |
public/stylesheets | |
public/javascripts/*_packaged.js | |
doc/specs.html | |
doc/features.html | |
END | |
gem 'rspec', :lib => false | |
gem 'rspec-rails', :lib => false | |
gem 'remarkable_rails', :lib => false | |
gem 'koujou' | |
gem 'haml' | |
gem 'less' | |
gem 'inherited_resources' | |
gem 'formtastic' | |
gem 'metric_fu' | |
gem 'cucumber' | |
gem 'pickle' | |
gem 'capybara' | |
gem 'inploy' | |
gem 'hoptoad_notifier' | |
plugin 'jrails', :git => 'git://github.com/aaronchi/jrails.git', :submodule => false | |
plugin 'asset_packager', :git => 'git://github.com/sbecker/asset_packager.git', :submodule => false | |
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git', :submodule => false | |
plugin 'more', :git => 'git://github.com/cloudhead/more.git', :submodule => false | |
plugin 'newrelic_rpm', :svn => 'http://newrelic.rubyforge.org/svn/newrelic_rpm', :submodule => false | |
rake 'gems:install', :sudo => true | |
generate "rspec" | |
generate "cucumber --capybara" | |
generate "pickle" | |
generate "hoptoad --api-key your_key_here" | |
rake 'db:migrate' | |
rake 'asset:packager:create_yml' | |
run 'cp config/environments/production.rb config/environments/staging.rb' | |
run 'mkdir app/views/shared' | |
run 'wget -O spec/resource_helper.rb http://gist.github.com/raw/190046/697c98a629e6529a5d730f46456bf75eb881aeca/resource_helper.rb' | |
append_file "spec/spec_helper.rb", "require File.expand_path(File.dirname(__FILE__) + '/resource_helper')" | |
append_file "spec/specs.opts", "--format html:doc/specs.html" | |
append_file "Rakefile", "task :build => ['db:migrate', 'spec', 'cucumber, :'metrics:all']" | |
run 'rm -Rf spec/views/* test/*' | |
append_file "config/database.yml", <<STRING | |
staging: | |
adapter: sqlite3 | |
database: db/staging.sqlite3 | |
pool: 5 | |
timeout: 5000 | |
STRING | |
git :add => '.' | |
git :commit => '-am "Initial commit"' | |
puts "SUCCESS!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment