Sha256: d4a2f3ca76e20c8228e581250c2a149092d2780e05778f18999989f6b5aac8f0

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

# Modules: DelayedJob

Mina plugin to manage delayed_jobs

## Installation

Add this line to your application's Gemfile:

```ruby
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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mina-delayed_job-1.1.0 README.md
mina-delayed_job-1.0.1 README.md
mina-delayed_job-1.0.0 README.md
mina-delayed_job-1.0.0.beta2 README.md
mina-delayed_job-1.0.0.beta1 README.md