Silence some Ruby 2.1 warnings
This commit is contained in:
parent
08ff164edd
commit
109e9dc58b
@ -98,7 +98,7 @@ class Step
|
||||
@status = success ? :passed : :failed
|
||||
puts_result
|
||||
|
||||
return unless File.exists?(log_file_path)
|
||||
return unless File.exist?(log_file_path)
|
||||
@output = IO.read(log_file_path)
|
||||
if has_output? and (not success or @puts_output_on_success)
|
||||
puts @output
|
||||
|
@ -521,7 +521,7 @@ def check_user_path_3
|
||||
end
|
||||
|
||||
def check_user_curlrc
|
||||
if %w[CURL_HOME HOME].any?{|key| ENV[key] and File.exists? "#{ENV[key]}/.curlrc" } then <<-EOS.undent
|
||||
if %w[CURL_HOME HOME].any?{|key| ENV[key] and File.exist? "#{ENV[key]}/.curlrc" } then <<-EOS.undent
|
||||
You have a curlrc file
|
||||
If you have trouble downloading packages with Homebrew, then maybe this
|
||||
is the problem? If the following command doesn't work, then try removing
|
||||
|
Loading…
x
Reference in New Issue
Block a user