boffbowsh (owner)

Fork Of

gist: 89169 by andrew Rails template

Forks

Revisions

gist: 130180 Download_button fork
public
Public Clone URL: git://gist.github.com/130180.git
Embed All Files: show embed
rails_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Delete unnecessary files
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/javascripts/prototype.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/controls.js"
 
# Copy database.yml for distribution use
run "cp config/database.yml config/database.yml.example"
 
# Plugins
plugin 'make_resourceful', :git => "git://github.com/hcatlin/make_resourceful.git"
plugin 'permalink_fu', :git => "git://github.com/technoweenie/permalink_fu.git"
plugin 'hoptoad_notifier', :git => "git://github.com/thoughtbot/hoptoad_notifier.git"
plugin 'role_requirement', :git => 'git://github.com/timcharper/role_requirement.git'
plugin 'restful_authentication', :git => 'git://github.com/technoweenie/restful-authentication.git'
 
generate 'authenticated --skip-routes user sessions'
generate 'roles Role User'
 
# Gems
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => "http://gems.github.com"
gem 'will_paginate'
gem 'haml'
gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com'
gem "jchupp-is_paranoid", :lib => 'is_paranoid', :source => 'http://gems.github.com'
 
# Commands
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.js > public/javascripts/jquery.js"
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore}
file '.gitignore', <<-END
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
END
 
# Set up git repository and Commit all work so far to the repository
git :init
plugin 'cms_admin', :git => 'git@github.com:rawnet/cms_admin.git', :submodule => true
rake 'rawnet:sync_engine_data'
rake 'db:create'
rake 'db:migrate'
git :add => '.'
git :commit => "-a -m 'Initial commit'"
 
# Success!
puts "SUCCESS!"