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.



185
186
187
188
189
# File 'lib/generators/deimos/v2_generator.rb', line 185

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


191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/generators/deimos/v2_generator.rb', line 191

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