Sha256: dc923d6e2d5a8cf42416cfec55be50b7b483539d4838e22ab74785cc66afed66

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

#!/usr/bin/env ruby

# assumes the cwd is a rails application

require 'yaml'
require 'delayed_job/monitor'

rails_env = ENV['RAILS_ENV'] || 'development'
configuration = YAML.load_file("config/database.yml")

Delayed::Job::Monitor.run(:database => configuration[rails_env])

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
delayed_job-monitor-0.1.0 bin/delayed_job_monitor
delayed_job-monitor-0.0.3 bin/delayed_job_monitor
delayed_job-monitor-0.0.2 bin/delayed_job_monitor