Class: FlippRubyKafka::Generators::TopicValidationGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/flipp_ruby_kafka/topic_validation/topic_validation_generator.rb

Overview

Generate the database backend migration.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.namespaceObject

:nodoc:



12
13
14
# File 'lib/generators/flipp_ruby_kafka/topic_validation/topic_validation_generator.rb', line 12

def self.namespace
  'flipp_ruby_kafka:topic_validation'
end

Instance Method Details

#generateObject

Main method to create all the necessary files



17
18
19
# File 'lib/generators/flipp_ruby_kafka/topic_validation/topic_validation_generator.rb', line 17

def generate
  FlippRubyKafka::Utils::PlatformTopicValidation.save_config_to_file(name)
end