Class: ShopifyApp::Generators::ShopifyAppGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ShopifyApp::Generators::ShopifyAppGenerator
- Defined in:
- lib/generators/shopify_app/shopify_app_generator.rb
Instance Method Summary collapse
-
#initialize(args, *options) ⇒ ShopifyAppGenerator
constructor
A new instance of ShopifyAppGenerator.
- #run_all_generators ⇒ Object
Constructor Details
#initialize(args, *options) ⇒ ShopifyAppGenerator
Returns a new instance of ShopifyAppGenerator.
6 7 8 9 |
# File 'lib/generators/shopify_app/shopify_app_generator.rb', line 6 def initialize(args, *) @opts = .first super(args, *) end |
Instance Method Details
#run_all_generators ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/generators/shopify_app/shopify_app_generator.rb', line 11 def run_all_generators generate("shopify_app:add_app_uninstalled_job") generate("shopify_app:add_privacy_jobs") generate("shopify_app:install #{@opts.join(" ")}") generate("shopify_app:shop_model #{@opts.join(" ")}") generate("shopify_app:authenticated_controller") generate("shopify_app:home_controller #{@opts.join(" ")}") end |