-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_template.rb
83 lines (68 loc) · 1.53 KB
/
app_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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
remove_file 'README.rdoc'
create_file 'README.md'
gem_group :development, :test do
gem 'awesome_print'
gem 'better_errors'
gem 'binding_of_caller'
gem 'bullet'
gem 'letter_opener'
gem 'pry-rails'
gem 'quiet_assets'
gem 'rspec-rails'
gem 'thin'
end
gem_group :production do
gem 'newrelic_rpm'
gem 'rails_12factor'
gem 'unicorn'
end
run 'bundle install'
#################
# init git repo #
#################
# https://raw.github.com/github/gitignore/master/Rails.gitignore
ignore_list = '
.DS_Store
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html
# config/initializers/secret_token.rb
# config/secrets.yml
## Environment normalisation:
/.bundle
/vendor/bundle
# these should all be checked in to normalise the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
'
git :init
append_file ".gitignore", ignore_list
git add: ".", commit: "-am 'initial commit'"
##############
# test suite #
##############
if yes? "Do you want to install rspec?"
generate "rspec:install"
git add: ".", commit: "-am 'installed rspec'"
end
###################
# root controller #
###################
# if yes? "Do you want to generate a root controller?"
# name = ask("What should it be called?").underscore
# generate :controller, "#{name} home"
# route "root to: '#{name}\#home'"
# git add: ".", commit: "-am 'added #{name} controller & root path'"
# end