Class: Validb::Tasker

Inherits:
Object
  • Object
show all
Defined in:
lib/validb/tasker.rb

Instance Method Summary collapse

Constructor Details

#initialize(model_names, filename) ⇒ Tasker

Returns a new instance of Tasker.



4
5
6
7
# File 'lib/validb/tasker.rb', line 4

def initialize(model_names, filename)
  @model_names = model_names
  @filename = filename
end

Instance Method Details

#runObject



9
10
11
12
13
# File 'lib/validb/tasker.rb', line 9

def run
  load_models_and_prepare_logger
  output_model_table_record_count
  validate_database_records
end