toland (owner)

Revisions

gist: 216953 Download_button fork
public
Description:
My rails template
Public Clone URL: git://gist.github.com/216953.git
Embed All Files: show embed
template.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Remove unnecessary Rails files
run 'rm README'
run 'rm public/index.html'
run 'rm public/favicon.ico'
run 'rm public/images/rails.png'
 
# Copy database.yml
run 'cp config/database.yml config/database.yml.example'
 
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com'
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
gem 'erubis'
gem 'cucumber'
gem 'webrat'
gem 'rspec'
gem 'rspec-rails'
 
# Run rspec generator
generate("rspec")
 
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js"
 
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
 
# Create .gitignore file
file '.gitignore', <<-FILE
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
*.tmproj
FILE
 
# Set up git repository
git :init
git :add => '.'