lib/isomorfeus/installer.rb in isomorfeus-1.0.0.zeta11 vs lib/isomorfeus/installer.rb in isomorfeus-1.0.0.zeta12

- old
+ new

@@ -88,11 +88,11 @@ def self.entrypoint_path(entrypoint) File.join(isomorfeus_path, 'imports', entrypoint) end def self.isomorfeus_path - 'isomorfeus' + 'app' end def self.webpack_config_path(config_file) File.join( 'webpack', config_file) end @@ -186,16 +186,17 @@ Isomorfeus::Installer.databases[options[:database]]&.fetch(:gems)&.each do |gem| database_gems << generate_gem_line(gem) end data_hash = { database_gems: database_gems.chop, rack_server_gems: rack_server_gems.chop } - %i[isomorfeus_data isomorfeus_i18n isomorfeus_operation isomorfeus_policy isomorfeus_transport].each do |i_module| - if source_dir + if source_dir + %i[isomorfeus_data isomorfeus_i18n isomorfeus_operation isomorfeus_policy isomorfeus_transport].each do |i_module| data_hash[i_module] = i_module == isomorfeus_module ? "path: '..'" : "path: '../../#{i_module.to_s.tr('_', '-')}'" - else - data_hash[i_module] = "'~> #{Isomorfeus::VERSION}'" end + data_hash[:isomorfeus] = nil + else + data_hash[:isomorfeus] = "'~> #{Isomorfeus::VERSION}'" end create_file_from_template('Gemfile.erb', 'Gemfile', data_hash) end def self.create_components @@ -227,9 +228,10 @@ end def self.create_procfile data_hash = { rack_server_start_command: rack_server[:start_command] } create_file_from_template('Procfile.erb', 'Procfile', data_hash) + create_file_from_template('ProcfileDev.erb', 'ProcfileDev', data_hash) create_file_from_template('ProcfileDebug.erb', 'ProcfileDebug', data_hash) end def self.create_spec data_hash = { app_class: app_class, app_require: app_require, rack_server: rack_server_name }