Module: Breeder
- Defined in:
- lib/breeder.rb,
lib/breeder/core.rb,
lib/breeder/worker.rb,
lib/breeder/watcher.rb,
lib/breeder/watcher/base.rb,
lib/breeder/breeding_strategy.rb,
lib/breeder/watcher/beanstalk.rb,
lib/breeder/breeding_strategy/forks.rb,
lib/breeder/breeding_strategy/threads.rb
Defined Under Namespace
Modules: BreedingStrategy, Watcher Classes: Base, Core, Worker
Class Method Summary collapse
-
.breed {|core| ... } ⇒ Object
Configure and run a Breeder::Core.
-
.create {|core| ... } ⇒ Object
Create a Breeder::Core and take a block to configure it.
Class Method Details
.breed {|core| ... } ⇒ Object
Configure and run a Breeder::Core
18 19 20 21 22 |
# File 'lib/breeder.rb', line 18 def self.breed(&block) core = Breeder::Core.new yield core core.run end |
.create {|core| ... } ⇒ Object
Create a Breeder::Core and take a block to configure it
11 12 13 14 15 |
# File 'lib/breeder.rb', line 11 def self.create core = Breeder::Core.new yield core if block_given? core end |