Class: DatabaseCopy::Executor

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

Instance Method Summary collapse

Constructor Details

#initialize(source_db:, target_db:) ⇒ Executor

Returns a new instance of Executor.



51
52
53
54
# File 'lib/database_copy.rb', line 51

def initialize(source_db:, target_db:)
  @source_db = source_db
  @target_db = target_db
end

Instance Method Details

#copy_databaseObject



56
57
58
# File 'lib/database_copy.rb', line 56

def copy_database
  copy_tables
end