Sha256: 0f64683a58e7fd8445a2d2bea389701640c2fe31deffc10c7964227e17080372

Contents?: true

Size: 556 Bytes

Versions: 1

Compression:

Stored size: 556 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.freeze_around_actions
RubyClock.instance.run_jobs

Version data entries

1 entries across 1 versions & 1 rubygems

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