From 730ae2c03f0632e57c3e4f643e685b9505a3c73e Mon Sep 17 00:00:00 2001 From: Peter Upfold Date: Sun, 11 Jun 2023 21:16:09 +0100 Subject: [PATCH] replace File:Class `exists?` with `exist?` --- lib/tasks/production.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/production.rake b/lib/tasks/production.rake index 424e8ae21f..2179332ed1 100644 --- a/lib/tasks/production.rake +++ b/lib/tasks/production.rake @@ -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" @@ -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