Class: ShopifyApp::Generators::ShopifyAppGenerator

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

Instance Method Summary collapse

Constructor Details

#initialize(args, *options) ⇒ ShopifyAppGenerator

Returns a new instance of ShopifyAppGenerator.


4
5
6
7
# File 'lib/generators/shopify_app/shopify_app_generator.rb', line 4

def initialize(args, *options)
  @opts = options.first
  super(args, *options)
end

Instance Method Details

#run_all_generatorsObject


9
10
11
12
13
# File 'lib/generators/shopify_app/shopify_app_generator.rb', line 9

def run_all_generators
  generate "shopify_app:install #{@opts.join(' ')}"
  generate "shopify_app:shop_model"
  generate "shopify_app:home_controller"
end