Class: KafkaProducer::Generators::OutboxProducerGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/kafka_producer/outbox_producer/outbox_producer_generator.rb

Instance Method Summary collapse

Instance Method Details

#insert_outbox_producerObject



12
13
14
15
# File 'lib/generators/kafka_producer/outbox_producer/outbox_producer_generator.rb', line 12

def insert_outbox_producer
  generate "outbox:item", "#{item_name.underscore} --kind outbox" unless options[:skip_item]
  generate "outbox:transport", "#{item_name.underscore} sbmt/kafka_producer --kind outbox"
end