class Dry::Web::WebPipe::Generators::FlatProject

Public Instance Methods

populate_templates() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 9
def populate_templates
  super
  add_views
  add_actions
  add_web
end

Private Instance Methods

add_actions() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 30
def add_actions
  add_template('flat_project/web.rb.tt', "lib/#{underscored_project_name}/web.rb")
  add_template('flat_project/root.rb.tt', "lib/#{underscored_project_name}/actions/root.rb")
end
add_application() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 22
def add_application
  add_template("flat_project/router.rb.tt", "system/#{underscored_project_name}/router.rb")
end
add_boot() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 18
def add_boot
  add_template("flat_project/boot.rb.tt", "system/boot.rb")
end
add_views() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 26
def add_views
  add_template('welcome.rb.tt', "lib/#{underscored_project_name}/views/welcome.rb")
end
add_web() click to toggle source
# File lib/dry/web/web_pipe/generators/flat_project.rb, line 35
def add_web
  add_template('application.html.slim', 'web/templates/layouts/application.html.slim')
  add_template('welcome.html.slim', 'web/templates/welcome.html.slim')
end