Class: MassiveImport::Configuration
- Inherits:
-
Object
- Object
- MassiveImport::Configuration
- Defined in:
- lib/massive-import.rb
Instance Attribute Summary collapse
-
#batch_timeout ⇒ Object
Returns the value of attribute batch_timeout.
-
#planner_lease ⇒ Object
Returns the value of attribute planner_lease.
-
#planning_interval ⇒ Object
Returns the value of attribute planning_interval.
-
#queue_name ⇒ Object
Returns the value of attribute queue_name.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/massive-import.rb', line 14 def initialize unless ActiveRecord::Base.connected? ActiveRecord::Base.establish_connection( adapter: 'mysql2', host: ENV['host'], username: ENV['username'], password: ENV['password'], database: ENV['database'] ) end ActiveRecord::Base.logger ||= Logger.new($stdout) end |
Instance Attribute Details
#batch_timeout ⇒ Object
Returns the value of attribute batch_timeout.
12 13 14 |
# File 'lib/massive-import.rb', line 12 def batch_timeout @batch_timeout end |
#planner_lease ⇒ Object
Returns the value of attribute planner_lease.
12 13 14 |
# File 'lib/massive-import.rb', line 12 def planner_lease @planner_lease end |
#planning_interval ⇒ Object
Returns the value of attribute planning_interval.
12 13 14 |
# File 'lib/massive-import.rb', line 12 def planning_interval @planning_interval end |
#queue_name ⇒ Object
Returns the value of attribute queue_name.
12 13 14 |
# File 'lib/massive-import.rb', line 12 def queue_name @queue_name end |