Class: CouchPopulator::Base
- Inherits:
-
Object
- Object
- CouchPopulator::Base
- Defined in:
- lib/couchpopulator/base.rb
Instance Method Summary collapse
-
#initialize(options, called_from_command_line = false) ⇒ Base
constructor
A new instance of Base.
- #populate ⇒ Object
Constructor Details
#initialize(options, called_from_command_line = false) ⇒ Base
3 4 5 6 7 8 |
# File 'lib/couchpopulator/base.rb', line 3 def initialize(, called_from_command_line = false) = [:couch_url] = CouchHelper.get_full_couchurl [:couch] unless [:couch].nil? .merge!([:executor_klass].) if called_from_command_line end |
Instance Method Details
#populate ⇒ Object
10 11 12 |
# File 'lib/couchpopulator/base.rb', line 10 def populate [:executor_klass].new().execute end |