File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ namespace :test do
65
65
filename = 'tmp/artifacts.json'
66
66
`curl -s https://artifacts-api.elastic.co/v1/versions/#{ version_number } -o #{ filename } `
67
67
68
- unless File . exists ?( "./#{ filename } " )
68
+ unless File . exist ?( "./#{ filename } " )
69
69
STDERR . puts '[!] Couldn\'t download artifacts file'
70
70
exit 1
71
71
end
@@ -82,7 +82,7 @@ namespace :test do
82
82
puts 'Downloading zip file:'
83
83
`curl -s #{ zip_url } -o tmp/#{ filename } `
84
84
85
- unless File . exists ?( "./tmp/#{ filename } " )
85
+ unless File . exist ?( "./tmp/#{ filename } " )
86
86
STDERR . puts '[!] Couldn\'t download artifact'
87
87
exit 1
88
88
end
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ namespace :benchmark do
164
164
task :download_dataset do
165
165
current_path = File . expand_path ( File . dirname ( __FILE__ ) )
166
166
data_path = [ current_path , 'data' ] . join ( '/' )
167
- unless File . exists ?( [ data_path , 'stackoverflow.json' ] . join ( '/' ) )
167
+ unless File . exist ?( [ data_path , 'stackoverflow.json' ] . join ( '/' ) )
168
168
`gsutil cp gs://clients-team-files/stackoverflow.json "#{ data_path } /"`
169
169
end
170
170
end
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ namespace :elasticsearch do
80
80
end
81
81
puts "Successfully downloaded #{ filename } "
82
82
83
- unless File . exists ?( filename )
83
+ unless File . exist ?( filename )
84
84
STDERR . puts "[!] Couldn't download #{ filename } "
85
85
exit 1
86
86
end
You can’t perform that action at this time.
0 commit comments