Class: FlippRubyKafka::Generators::TopicValidationGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- FlippRubyKafka::Generators::TopicValidationGenerator
- Defined in:
- lib/generators/flipp_ruby_kafka/topic_validation/topic_validation_generator.rb
Overview
Generate the database backend migration.
Class Method Summary collapse
-
.namespace ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#generate ⇒ Object
Main method to create all the necessary files.
Class Method Details
.namespace ⇒ Object
: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
#generate ⇒ Object
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 |