Module: DataImport

Defined in:
lib/data-import.rb,
lib/data-import/dsl.rb,
lib/data-import/runner.rb,
lib/data-import/version.rb,
lib/data-import/database.rb,
lib/data-import/importer.rb,
lib/data-import/definition.rb,
lib/data-import/dsl/import.rb,
lib/data-import/execution_plan.rb,
lib/data-import/adapters/sequel.rb,
lib/data-import/dsl/import/from.rb,
lib/data-import/definition/simple.rb

Defined Under Namespace

Modules: Adapters Classes: Database, Definition, Dsl, ExecutionPlan, Importer, Runner

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.run_config!(config_path, options = {}) ⇒ Object



25
26
27
28
# File 'lib/data-import.rb', line 25

def self.run_config!(config_path, options = {})
  plan = DataImport::Dsl.evaluate_import_config(config_path)
  run_plan!(plan, options)
end

.run_plan!(plan, options = {}) ⇒ Object



30
31
32
33
# File 'lib/data-import.rb', line 30

def self.run_plan!(plan, options = {})
  runner = Runner.new(plan)
  runner.run(options)
end