Class: Vindi::Generators::WebhookHandlerGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Vindi::Generators::WebhookHandlerGenerator
- Defined in:
- lib/generators/vindi/webhook_handler_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_webhook_handler_files ⇒ Object
12 13 14 15 |
# File 'lib/generators/vindi/webhook_handler_generator.rb', line 12 def create_webhook_handler_files template "base_handler.rb", "app/services/vindi/webhooks/base_handler.rb" template "webhook_handler.rb", "app/services/vindi/webhooks/#{file_name}_handler.rb" end |