Skip to content

Commit 2b65cf1

Browse files
committed
fix: Replace deprecated File.exists? method.
1 parent 5d7ba4f commit 2b65cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deploy_agent/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def pid_from_file
123123

124124
def write_pid
125125
File.open(PID_PATH, 'w') { |f| f.write Process.pid.to_s }
126-
at_exit { File.delete(PID_PATH) if File.exists?(PID_PATH) }
126+
at_exit { File.delete(PID_PATH) if File.exist?(PID_PATH) }
127127
end
128128

129129
end

0 commit comments

Comments
 (0)