Skip to content

Commit

Permalink
Merge pull request #3272 from PeterUpfold/ruby3.2-production-rake-exists
Browse files Browse the repository at this point in the history
replace File:Class `exists?` with `exist?`
  • Loading branch information
knu committed Jun 22, 2023
2 parents bb29e25 + 730ae2c commit 71cf6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/production.rake
Expand Up @@ -14,7 +14,7 @@ def runit_installed
end

def remove_upstart_config
return true unless File.exists?('/etc/init/huginn.conf')
return true unless File.exist?('/etc/init/huginn.conf')
puts "#{failed} Please stop huginn and remove the huginn upstart init scripts:\n\n"
puts "sudo stop huginn"
puts "sudo rm /etc/init/huginn*\n\n"
Expand Down Expand Up @@ -62,7 +62,7 @@ namespace :production do
while services.length > 0
services.each do |p|
supervise = File.join(p, 'supervise')
next if !Dir.exists?(supervise)
next if !Dir.exist?(supervise)
run("chown -R huginn:huginn #{p}")
services.delete(p)
end
Expand Down

0 comments on commit 71cf6b4

Please sign in to comment.