diff --git a/lib/capistrano/opscomplete.rb b/lib/capistrano/opscomplete.rb index 5ae581b..7de49b0 100644 --- a/lib/capistrano/opscomplete.rb +++ b/lib/capistrano/opscomplete.rb @@ -6,4 +6,5 @@ load File.expand_path('opscomplete/ruby.rake', __dir__) load File.expand_path('opscomplete/nodejs.rake', __dir__) load File.expand_path('opscomplete/supervisor.rake', __dir__) +load File.expand_path('opscomplete/puma.rake', __dir__) load File.expand_path('opscomplete/hooks.rb', __dir__) diff --git a/lib/capistrano/opscomplete/puma.rake b/lib/capistrano/opscomplete/puma.rake new file mode 100644 index 0000000..56c33a7 --- /dev/null +++ b/lib/capistrano/opscomplete/puma.rake @@ -0,0 +1,13 @@ +# vim: filetype=ruby +namespace :opscomplete do + namespace :puma do + + desc 'Reload the systemd puma userunit' + task :reload do + on roles fetch(:puma_roles, :foo_roles) do # by default on the puma role if not on all systems + execute :systemctl_user_puma_reload + end + end + + end +end