Sha256: 120ab5be8387021012c8966f899eeb1affde6dfd6d8abcc2aa6749398d64edc5
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' module Scrapbook # Initial default setup of Scrapbook class InstallGenerator < Rails::Generators::Base class_option 'url-path', default: '/scrapbook' class_option 'path-with-name', default: 'scrapbook' def install generate 'scrapbook:routes', options.fetch('url-path') generate 'scrapbook:new', options.fetch('path-with-name') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scrapbook-0.2.0 | lib/generators/scrapbook/install_generator.rb |