Class: DatabaseCopy::Executor
- Inherits:
-
Object
- Object
- DatabaseCopy::Executor
- Defined in:
- lib/database_copy.rb
Instance Method Summary collapse
- #copy_database ⇒ Object
-
#initialize(source_db:, target_db:) ⇒ Executor
constructor
A new instance of Executor.
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_database ⇒ Object
56 57 58 |
# File 'lib/database_copy.rb', line 56 def copy_database copy_tables end |