Class: Pageflow::Generators::ThemeGenerator Private

Inherits:
Rails::Generators::Base
  • Object
show all
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

Instance Method Details

#copy_templateObject

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