class Remme::Runner

Public Class Methods

new(options) click to toggle source
# File lib/remme.rb, line 20
def initialize(options)
  @options = options.merge(
    notifier: notifier,
    after_hook: ->() { player.play },
    before_hook: ->() { player.pause }
  )
end
run(options) click to toggle source
# File lib/remme.rb, line 15
def run(options)
  new(options).run
end

Public Instance Methods

run() click to toggle source
# File lib/remme.rb, line 28
def run
  demonize(Process) do
    Scheduler.run(@options)
    until Scheduler.completed? do end
  end
end

Private Instance Methods

notifier() click to toggle source
# File lib/remme.rb, line 41
def notifier
  @notifier ||= Notifier::Base.init
end
player() click to toggle source
# File lib/remme.rb, line 37
def player
  @player ||= Player::Base.init
end