diff options
author | Robert Speicher <robert@gitlab.com> | 2016-05-12 22:41:01 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-05-12 22:41:01 +0000 |
commit | 4735a753407b364f7034cf4dbd6ae621b25396c2 (patch) | |
tree | 649e64a0cf21ff1d733ef7a0d9f4c358deafc207 /app/models/ci/build.rb | |
parent | 5186f6e3bd541ffa13f9f907067c638790b9ebfe (diff) | |
parent | 9cc0937b3a41caca89fa6722149248a8f7b0a447 (diff) | |
download | gitlab-ce-4735a753407b364f7034cf4dbd6ae621b25396c2.tar.gz |
Merge branch 'deprecated-class-methods-cop' into 'master'
Enable the Rubocop DeprecatedClassMethods cop
This reports uses of `File.exists?` and `Dir.exists?`, which were both
deprecated in Ruby and will eventually be removed in favor of `.exist?`.
Also fixes all existing uses of the deprecated methods.
See merge request !4087
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 4a3f92ad34a..92327bdb08d 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -205,7 +205,7 @@ module Ci end def recreate_trace_dir - unless Dir.exists?(dir_to_trace) + unless Dir.exist?(dir_to_trace) FileUtils.mkdir_p(dir_to_trace) end end |