-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.rb
43 lines (29 loc) · 1.04 KB
/
base.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
39
40
41
42
43
# set some globals
@module_path = "http://github.com/jurgis/rails3-templates/raw/master/modules"
# uncoment when testing
# @module_path = "~/rails/rails3-templates/modules"
# ---------------------------------------------------------------------------
# Initialize git
apply "#{@module_path}/git_init.rb"
git :add => "."
git :commit => "-m 'initial commit'"
# Delete unused files
apply "#{@module_path}/delete_unused.rb"
# Install AR adapters and copy database.yml to database.yml.example
apply "#{@module_path}/db.rb"
# Download jQuery and rails-ujs.js
apply "#{@module_path}/jquery.rb"
# Add rspec
apply "#{@module_path}/rspec.rb"
# Add cucumber
apply "#{@module_path}/cucumber.rb"
# Add authlogic and openid
apply "#{@module_path}/authlogic_openid.rb"
# Add other useful gems as inherited resources, formtastic, will_paginate, etc ...
apply "#{@module_path}/useful_gems.rb"
# Create a layout
apply "#{@module_path}/layout.rb"
# install all required gems
apply "#{@module_path}/install_gems.rb"
git :add => "."
git :commit => "-m 'applied base template'"