0.0
No commit activity in last 3 years
No release in over 3 years
Sneakers tasks for Mina
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0

Runtime

~> 1.0
~> 2.6
 Project Readme

Mina Sneakers

Mina tasks for handle with Sneakers.

This gem provides several mina tasks:

mina sneakers:kill            # Kill sneakers
mina sneakers:phased_restart  # Restart sneakers (phased restart)
mina sneakers:restart         # Restart sneakers
mina sneakers:start           # Start sneakers
mina sneakers:stop            # Stop sneakers

Installation

Add this line to your application's Gemfile:

gem 'mina-sneakers', git: 'https://github.com/warpc/mina-sneakers', require: false

And then execute:

$ bundle

Usage

Add this to your config/deploy.rb file:

require 'mina/sneakers'

Warning: sneakers daemon option should be true for environment which plan to deploy using mina

Example

require 'mina/sneakers'

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

    on :launch do
      ...
      invoke :'sneakers:phased_restart'
    end
  end
end

Contributing

  1. Fork it
  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 new Pull Request