lib/souls/cli/sync/model.rb in souls-0.38.0 vs lib/souls/cli/sync/model.rb in souls-0.38.1
- old
+ new
@@ -9,10 +9,11 @@
end
private
def cp_and_dl_files(dir: "db")
- worker_paths = Souls.configuration.workers.map { |n| n[:name] }
+ require("#{Souls.get_mother_path}/config/souls")
+ worker_paths = Souls.configuration.workers
worker_paths.each do |path|
cp_path = "./apps/api/#{dir}"
old_path = "./apps/#{path}/#{dir}"
FileUtils.rm_rf(old_path) if Dir.exist?(old_path)
FileUtils.mkdir(old_path) unless Dir.exist?(old_path)