forked from kfaustino/rails-templater
-
Notifications
You must be signed in to change notification settings - Fork 11
/
templater.rb
36 lines (25 loc) · 830 Bytes
/
templater.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
require File.join(File.dirname(__FILE__), 'core_extensions.rb')
initialize_templater
#Create Gemspec
create_file ".rvmrc", "rvm gemset use #{app_name}"
required_recipes = %w(default jquery haml rspec factory_girl remarkable)
required_recipes.each {|required_recipe| apply recipe(required_recipe)}
load_options
apply(recipe('cucumber')) if yes?("Do you want to some cukes?")
apply recipe('design')
apply recipe('mongoid')
inside app_name do
run 'bundle install'
end
execute_stategies
generators_configuration = <<-END
config.generators do |g|
g.template_engine :haml
g.test_framework :rspec, :fixture => true, :views => false
g.fixture_replacement :factory_girl, :dir => "spec/factories"
g.stylesheets false
end
END
environment generators_configuration
git :add => "."
git :commit => "-m 'Initial commit'"