6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/generators/matrioshka/install_generator.rb', line 6
def install
template "matrioshka.rake", "lib/tasks/matrioshka.rake"
template "engine.rb", "lib/#{application.underscore}.rb"
template "init.rb", "init.rb"
template "application.gemspec", "#{application.underscore.gsub('/', '-')}.gemspec"
%w(
config.ru
Rakefile
config/environment.rb
config/routes.rb
config/environments/development.rb
config/environments/production.rb
config/environments/test.rb
config/initializers/secret_token.rb
config/initializers/session_store.rb
).each do |f|
if File.exists?(Rails.root.join f)
gsub_explicit_application_name f
end
end
end
|