require "securerandom" require "dry/web/roda/generators/abstract_project" require "dry/web/roda/generators/sub_app" module Dry module Web module Roda module Generators class UmbrellaProject < AbstractProject private def add_boot add_template("umbrella_project/boot.rb.tt", "system/boot.rb") end def add_application add_template("umbrella_project/web.rb.tt", "system/#{underscored_project_name}/web.rb") end def post_process_callback Dir.chdir(target_dir) do Generators::SubApp.new("main", umbrella: target_dir).call end end end end end end end