forked from jm/rails-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslavix_default.rb
62 lines (43 loc) · 1.62 KB
/
slavix_default.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
# slavix_default.rb
# from Slava Mikerin
#init git for the app
apply "http://github.com/slavix/rails-templates/raw/rails3/newgit.rb"
run "echo TODO > README"
run "rm public/index.html"
#default set of included gems
gem 'inherited_resources', '>= 1.1.2'
if yes?("Do you want to use Formtastic?")
gem 'formtastic', :git => "http://github.com/justinfrench/formtastic.git", :branch => "rails3"
gem install jintastic
run "bundle install"
generate("formtastic:install")
end
if yes?("Do you want to use Devise?")
gem 'devise', '>= 1.1.3'
end
#adds Generators for DataMapper, Haml, Factory-girl, Authlogic, Mongomapper, Shoulda, Formtastic and SimpleForm
gem 'rails3-generators', :group => :development
#more generators
gem "nifty-generators", :group => :development
apply "http://github.com/slavix/rails-templates/raw/rails3/rack.rb"
if yes?("Do you want to use jQuery?")
apply "http://github.com/slavix/rails-templates/raw/rails3/jquery.rb"
end
if yes?("Do you want to use RSpec?")
apply "http://github.com/slavix/rails-templates/raw/rails3/rspec.rb"
end
if yes?("Do you want to use haml?")
apply "http://github.com/slavix/rails-templates/raw/rails3/haml.rb"
end
if yes?("Do you want to use factory_girl?")
apply "http://github.com/slavix/rails-templates/raw/rails3/factory_girl.rb"
end
if yes?("Do you want to use Cucumber?")
apply "http://github.com/slavix/rails-templates/raw/rails3/cucumber.rb"
end
if yes?("Do you want to use active_scaffold?")
apply "http://github.com/slavix/rails-templates/raw/rails3/active_scaffold.rb"
end
#commits all to git
git :add => "."
git :commit => "-a -m 'Setting up a new rails app.'"