Class: Scrapbook::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Scrapbook::InstallGenerator
- Defined in:
- lib/generators/scrapbook/install_generator.rb
Overview
Initial default setup of Scrapbook
Instance Method Summary collapse
Instance Method Details
#install ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/scrapbook/install_generator.rb', line 10 def install name = Pathname.new(.fetch('path-with-name')).basename.to_s generate 'scrapbook:routes', name generate 'scrapbook:new', .fetch('path-with-name') sprockets_support end |