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
- Fork it ( https://github.com/toritori0318/itamae-plugin-recipe-supervisor/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request