Class: Deimos::Generators::V2Generator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/deimos/v2_generator.rb

Overview

Generator for ActiveRecord model and migration.

Defined Under Namespace

Classes: ProcString

Instance Method Summary collapse

Instance Method Details

#generatevoid

This method returns an undefined value.



214
215
216
217
218
# File 'lib/generators/deimos/v2_generator.rb', line 214

def generate
  process_all_files
  say('Generation complete! You are safe to remove the existing initializer that configures Deimos.', :green)
  print_warnings
end


220
221
222
223
224
225
226
227
228
229
230
231
# File 'lib/generators/deimos/v2_generator.rb', line 220

def print_warnings
  say('Note: The following settings cannot be determined by the generator:', :yellow)
  say('*  logger / phobos_logger (dynamic object, cannot be printed out)', :yellow)
  say('*  kafka.sasl.oauth_token_provider', :yellow)
  say('*  producers.max_buffer_size', :yellow)
  say('*  metrics', :yellow)
  say('*  tracer', :yellow)
  say('*  consumers.bulk_import_id_generator', :yellow)
  say('*  consumer.fatal_error', :yellow)
  say('*  consumer.backoff (only handles minimum, not maximum)', :yellow)
  say('For more information, see https://github.com/flipp-oss/deimos/blob/master/docs/UPGRADING.md', :yellow)
end