0
0
Fork 0

Fix Lint/SymbolConversion cop (#28175)

This commit is contained in:
Matt Jankowski 2023-12-01 10:53:35 -05:00 committed by GitHub
parent aa8563d43d
commit 5631f139c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ namespace :systemd do
SYSTEMD_SERVICES.each do |service|
SERVICE_ACTIONS.each do |action|
desc "Perform a #{action} on #{service} service"
task "#{service}:#{action}".to_sym do
task :"#{service}:#{action}" do
on roles(:app) do
# runs e.g. "sudo restart mastodon-sidekiq.service"
sudo :systemctl, action, "#{fetch(:application)}-#{service}.service"