Skip to content

Instantly share code, notes, and snippets.

@alobato
Created May 2, 2010 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alobato/386853 to your computer and use it in GitHub Desktop.
Save alobato/386853 to your computer and use it in GitHub Desktop.
!!! XML
!!!
%html
%head
%title
= javascript_include_merged :base
= stylesheet_link_merged :base
%body= yield
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