Class: Mist::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Mist::SetupGenerator
- Defined in:
- lib/generators/mist/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
4 5 6 |
# File 'lib/generators/mist/setup_generator.rb', line 4 def copy_views copy_file 'app/views/layouts/mist/posts.html.erb' end |
#create_initializer ⇒ Object
13 14 15 |
# File 'lib/generators/mist/setup_generator.rb', line 13 def create_initializer copy_file template_path('initializer.rb'), 'config/initializers/mist.rb' end |
#install_assets ⇒ Object
8 9 10 11 |
# File 'lib/generators/mist/setup_generator.rb', line 8 def install_assets copy_file template_path('mist.js.coffee'), 'app/assets/javascripts/mist.js.coffee' copy_file template_path('mist.css.scss'), 'app/assets/stylesheets/mist.css.scss' end |