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
Returns a new instance of Base.
3 4 5 6 7 8 |
# File 'lib/couchpopulator/base.rb', line 3 def initialize(, called_from_command_line = false) @options = @options[:couch_url] = CouchHelper.get_full_couchurl [:couch] unless @options[:couch].nil? @options.merge!(@options[: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 @options[:executor_klass].new(@options).execute end |