Class: FlippRubyKafka::Generators::SchemaValidationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/flipp_ruby_kafka/schema_validation/schema_validation_generator.rb

Overview

Generate the database backend migration.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.namespaceObject

:nodoc:



13
14
15
# File 'lib/generators/flipp_ruby_kafka/schema_validation/schema_validation_generator.rb', line 13

def self.namespace
  'flipp_ruby_kafka:schema_validation'
end

Instance Method Details

#generateObject

Main method to create all the necessary files



18
19
20
# File 'lib/generators/flipp_ruby_kafka/schema_validation/schema_validation_generator.rb', line 18

def generate
  FlippRubyKafka::Utils::PlatformSchemaValidation.new(base_path: Rails.root).run
end