Class: Pageflow::Generators::ErrorPagesGenerator Private

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pageflow/error_pages/error_pages_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_fontsObject

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.



15
16
17
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 15

def copy_fonts
  directory 'fonts', 'public/pageflow/error_pages/fonts'
end

#copy_imagesObject

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.



23
24
25
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 23

def copy_images
  directory 'images', 'public/pageflow/error_pages/images'
end

#copy_stylesheetsObject

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.



19
20
21
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 19

def copy_stylesheets
  directory 'stylesheets', 'public/pageflow/error_pages/stylesheets'
end

#create_not_foundObject

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.



11
12
13
# File 'lib/generators/pageflow/error_pages/error_pages_generator.rb', line 11

def create_not_found
  copy_file '404.html', 'public/pageflow/error_pages/404.html'
end