11
12
13
14
15
16
17
18
19
|
# File 'lib/generators/modulorails/moduloproject/moduloproject_generator.rb', line 11
def create_config
remove_old_keepfile(".modulorails-#{generator_name}")
template 'config/environments/production.rb'
copy_file('config/environments/production.rb', 'config/environments/staging.rb')
update_application_rb
create_file('config/locales/fr.yml', "--\nfr: {}\n")
rescue StandardError => e
warn("[Modulorails] Error: cannot generate Moduloproject configuration: #{e.message}")
end
|