Method: Pageflow::Generators::ThemeGenerator#copy_template
- Defined in:
- lib/generators/pageflow/theme/theme_generator.rb
#copy_template ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 19 20 21 22 |
# File 'lib/generators/pageflow/theme/theme_generator.rb', line 16 def copy_template directory('themes', File.join('app', 'assets', 'stylesheets', 'pageflow', 'themes')) empty_directory(File.join('app', 'assets', 'images', 'pageflow', 'themes', name)) copy_file('preview.png', "app/assets/images/pageflow/themes/#{name}/preview.png") copy_file('preview_thumbnail.png', "app/assets/images/pageflow/themes/#{name}/preview_thumbnail.png") end |