Class: Pageflow::Generators::ThemeGenerator Private
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pageflow::Generators::ThemeGenerator
- Defined in:
- lib/generators/pageflow/theme/theme_generator.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #copy_template ⇒ Object private
Instance Method Details
#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 |