diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-08-10 00:23:25 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-08-11 13:54:45 +0300 |
commit | 96ebc8c4f7223091d97c38c442d68c8058d26261 (patch) | |
tree | 4340c6ad010acbcbd47e908176cb6653a0c8f935 /lib/backup/manager.rb | |
parent | 3a46eac1ef903c027c244d31369329f45c636914 (diff) |
Use `File::exist?` instead of `File::exists?`
Since version ruby-2.2.0, method `File::exists?` is deprecated.
Diffstat (limited to 'lib/backup/manager.rb')
-rw-r--r-- | lib/backup/manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index 2ff3e3bdfb0..0dfffaf0bc6 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -114,7 +114,7 @@ module Backup tar_file = ENV["BACKUP"].nil? ? File.join("#{file_list.first}_gitlab_backup.tar") : File.join(ENV["BACKUP"] + "_gitlab_backup.tar") - unless File.exists?(tar_file) + unless File.exist?(tar_file) puts "The specified backup doesn't exist!" exit 1 end |