Class: Scrapbook::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/scrapbook/install_generator.rb

Overview

Initial default setup of Scrapbook

Instance Method Summary collapse

Instance Method Details

#installObject



10
11
12
13
14
15
16
# File 'lib/generators/scrapbook/install_generator.rb', line 10

def install
  name = Pathname.new(options.fetch('path-with-name')).basename.to_s

  generate 'scrapbook:routes', name
  generate 'scrapbook:new', options.fetch('path-with-name')
  sprockets_support
end