toritori0318 / itamae-plugin-recipe-supervisor

Itamae recipe plugin for supervisor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Itamae::Plugin::Recipe::Supervisor

Itamae recipe plugin for supervisor.

Installation

Add this line to your application's Gemfile:

gem 'itamae-plugin-recipe-supervisor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install itamae-plugin-recipe-supervisor

Usage

Install

include_recipe "supervisor::install"

Generate Config

include_recipe "supervisor"

supervisor_service "hoge" do
  command "echo 'hello'"
  notifies :update, "supervisorctl[all]", :delay
end

# for notifies
supervisorctl "all" do
  action :nothing
end

supervisorctl

include_recipe "supervisor"

# supervisorctl
supervisorctl "all" do
  action :update
end

# supervisorctl group
supervisorctl_group "webapp" do
  action :restart
end

Contributing

  1. Fork it ( https://github.com/toritori0318/itamae-plugin-recipe-supervisor/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

About

Itamae recipe plugin for supervisor.

License:MIT License


Languages

Language:Ruby 61.3%Language:HTML 29.3%Language:Shell 9.4%