Module: Bonito
- Defined in:
- lib/bonito/runner.rb,
lib/bonito/scope.rb,
lib/bonito/moment.rb,
lib/bonito/version.rb,
lib/bonito/progress.rb,
lib/bonito/timeline.rb,
lib/bonito/serial_timeline.rb,
lib/bonito/parallel_timeline.rb
Overview
:nodoc:
Defined Under Namespace
Modules: ProgressCounter Classes: Accessor, BonitoException, Distribution, LazyMinHeap, Moment, MomentScheduler, OffsetTimeline, ParallelScheduler, ParallelTimeline, ProgressBar, ProgressDecorator, ProgressLogger, Runner, Scheduler, Scope, ScopedMoment, SerialScheduler, SerialTimeline, Timeline, WindowDurationExceeded
Constant Summary collapse
- VERSION =
'0.2.0'.freeze
Class Method Summary collapse
- .over(duration, &block) ⇒ Object
- .run(serial, starting:, scope: Scope.new, progress_factory: ProgressLogger.factory, **opts) ⇒ Object
Class Method Details
.over(duration, &block) ⇒ Object
295 296 297 |
# File 'lib/bonito/serial_timeline.rb', line 295 def self.over(duration, &block) SerialTimeline.new duration, &block end |
.run(serial, starting:, scope: Scope.new, progress_factory: ProgressLogger.factory, **opts) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/bonito/runner.rb', line 36 def self.run( serial, starting:, scope: Scope.new, progress_factory: ProgressLogger.factory, **opts ) scheduler = serial.scheduler(starting, scope, opts) progress = progress_factory.call total: scheduler.count scheduler = ProgressDecorator.new scheduler, progress Runner.new(scheduler, opts).call end |