geo-logcursor 284 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env ruby

EXEC = 'geo_log_cursor'

bin_dir = 'gitlab/ee/bin/'
bin_dir = 'gitlab/bin' unless File.exist?(File.join(bin_dir, EXEC))

abort 'Could not locate Geo log cursor executable' unless File.exist?(File.join(bin_dir, EXEC))

Dir.chdir(bin_dir)

exec("./#{EXEC}", *ARGV)