Class: Hashrocket::LayoutGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hashrocket::LayoutGenerator
- Includes:
- Generators
- Defined in:
- lib/generators/hashrocket/layout/layout_generator.rb
Instance Method Summary collapse
Instance Method Details
#setup_layout ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/hashrocket/layout/layout_generator.rb', line 7 def setup_layout template 'application.html.haml', 'app/views/layouts/application.html.haml' remove_file 'app/views/layouts/application.html.erb' commit 'Setup base layout' end |
#setup_stylesheets ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/generators/hashrocket/layout/layout_generator.rb', line 13 def setup_stylesheets remove_file 'app/assets/stylesheets/application.css' gitkeep 'app/assets/stylesheets/vendor' gitkeep 'app/assets/stylesheets/global' template 'application.css.sass', 'app/assets/stylesheets/application.css.sass' commit 'Setup base stylesheets' end |