Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Guard plugin for Qu. Use with Guard to monitor and restart your Qu workers.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
CHANGELOG.md
Gemfile
Guardfile
LICENSE.md
README.markdown
Rakefile
guard-qu.gemspec

README.markdown

Guard::Qu

Guard::Qu automatically starts/stops/restarts qu workers

forked from Guard::Resque

Install

Please be sure to have Guard installed before continue.

Install the gem:

gem install guard-qu

Add it to your Gemfile (inside test group):

gem 'guard-qu'

Add guard definition to your Guardfile by running this command:

guard init qu

Usage

Please read Guard usage doc.

I suggest you put the qu guard definition before your test/rspec guard if your tests depend on it being active.

Guardfile

guard 'qu', :environment => 'development' do
  watch(%r{^app/(.+)\.rb$})
  watch(%r{^lib/(.+)\.rb$})
end

Feel free to be more specific, for example watching only for app/models and app/jobs to avoid reloading on a javascript file change.

Options

You can customize the qu task via the following options:

  • environment: the rails environment to run the workers in (defaults to nil)
  • task: the name of the rake task to use (defaults to "qu:work")
  • queue: the qu queue to run (defaults to "default")
  • trace: whether to include --trace on the rake command (defaults to nil)
  • stop_signal: how to kill the process when restarting (defaults to TERM)

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Guard::Delayed Authors

David Parry Dennis Reimann

Ideas for this gem came from Guard::WEBrick.

Guard::Qu Authors

Will Prater

I hacked this together from the guard-resque gem for use with Qu. All credit go to the original authors.

Something went wrong with that request. Please try again.