Sha256: 1c8aec54db8ec671db0f062eb082aaea02613edebb9294a6a066b468f982766f

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

#!/usr/bin/env ruby

require 'ruby-clock'
RubyClock.detect_and_load_rails_app
require 'rufus_monkeypatch'
RubyClock.instance.listen_to_signals
RubyClock.instance.prepare_rake
RubyClock.instance.schedule.pause
RubyClock.instance.add_rails_executor_to_around_actions

begin
  load ARGV[0] || 'Clockfile'
rescue => clockfile_error
  if RubyClock.instance.on_error
    RubyClock.instance.on_error.call("An error has occured while parsing the clockfile", clockfile_error)
  end

  raise
end

RubyClock.instance.ensure_around_trigger_has_not_been_redefined
RubyClock.instance.freeze_around_actions
RubyClock.instance.run_jobs

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-clock-2.0.0.beta5 exe/clock