0.02
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Added tasks for working with delayed job
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 1.0.0
 Project Readme

Modules: DelayedJob

Mina plugin to manage delayed_jobs

Installation

Add this line to your application's Gemfile:

gem 'mina-delayed_job', require: false

And then execute:

$ bundle

Or install it yourself as:

$ gem install mina-delayed_job

Usage

Settings

Any and all of these settings can be overriden in your deploy.rb.

Sets the path to delayed_job.

set :delayed_job, lambda { "bin/delayed_job" }

Sets the dir to the pid files of a delayed_job workers

set :delayed_job_pid_dir, 'pids'

Sets the number of delayed_job processes launched

set_default :delayed_job_processes, 1

Sets some additional parameters

set_default :delayed_job_additional_params, ''

Usage example

require 'mina/delayed_job'

task :deploy do
  deploy do
    invoke :'git:clone'
    ...

    to :launch do
      ...
      invoke :'delayed_job:restart'
    end
  end
end

Contributing

  1. Fork it ( https://github.com/[my-github-username]/mina-delayed_job/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request