Class: Vindi::Generators::WebhookHandlerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/vindi/webhook_handler_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_webhook_handler_filesObject



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