Sha256: 1147c6a8c9588c64efc7253543f0e309ae043268d294baa97e0ab5e3e7add02d
Contents?: true
Size: 736 Bytes
Versions: 7
Compression:
Stored size: 736 Bytes
Contents
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/application.rb.tt", "system/#{underscored_project_name}/application.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
Version data entries
7 entries across 7 versions & 1 rubygems