Class: Pah::Templates::Layout
- Inherits:
-
Pah::Template
- Object
- Rails::Generators::Base
- Pah::Template
- Pah::Templates::Layout
- Defined in:
- lib/pah/templates/layout.rb
Instance Method Summary collapse
Methods inherited from Pah::Template
#ask_unless_test, #copy_static_file, #git_commit, #static_files, #will_you_like_to?
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/pah/templates/layout.rb', line 4 def call copy_static_file 'app/views/layouts/application.html.slim' copy_static_file 'app/views/application/_flash_messages.html.slim' gsub_file 'app/views/layouts/application.html.slim', /= page_title(app_name: 'example')/, "= page_title(app_name: '#{Pah.configuration.app_name}')" git add: 'app/views/' git_commit 'Add layout files.' end |