Module: DataMigration
- Defined in:
- lib/data-migration.rb,
lib/data_migration/job.rb,
lib/data_migration/task.rb,
lib/data_migration/config.rb,
lib/generators/data_migration/install_generator.rb
Defined Under Namespace
Modules: Generators
Classes: Config, Job, JobConcurrencyLimitError, JobConflictError, Task
Constant Summary
collapse
- VERSION =
"1.3.0".freeze
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
10
11
12
|
# File 'lib/data-migration.rb', line 10
def config
@@config ||= DataMigration::Config.new
end
|
14
15
16
|
# File 'lib/data-migration.rb', line 14
def configure
yield config
end
|
.notify(message, context: {}) ⇒ Object
18
19
20
21
22
23
24
|
# File 'lib/data-migration.rb', line 18
def notify(message, context: {})
if Object.const_defined?(:ActionReporter)
ActionReporter.notify(message, context: context.presence || {})
elsif Object.const_defined?(:Rails)
Rails.logger.info("#{message} #{context.inspect}")
end
end
|
.tasks_table_name ⇒ Object
8
9
10
|
# File 'lib/data_migration/task.rb', line 8
def self.tasks_table_name
"data_migration_tasks"
end
|