Class: Convertr::Runner

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

Defined Under Namespace

Classes: OptParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Runner

{{{



38
39
40
41
# File 'lib/convertr/runner.rb', line 38

def initialize(opts) # {{{
  @config = Convertr::Runner::OptParser.parse(opts)
  Convertr.configure(@config)
end

Instance Attribute Details

#configObject (readonly)

}}}



36
37
38
# File 'lib/convertr/runner.rb', line 36

def config
  @config
end

#db_configObject (readonly)

}}}



36
37
38
# File 'lib/convertr/runner.rb', line 36

def db_config
  @db_config
end

#optionsObject (readonly)

}}}



36
37
38
# File 'lib/convertr/runner.rb', line 36

def options
  @options
end

Instance Method Details

#runObject

}}}



43
44
45
# File 'lib/convertr/runner.rb', line 43

def run # {{{
  Convertr::Convertor.new(@config.max_tasks).run
end