Module: Applitools::Connectivity::UniversalServerGemFinder

Extended by:
UniversalServerGemFinder
Included in:
UniversalServerGemFinder
Defined in:
lib/applitools/universal_sdk/executable_finder.rb

Constant Summary collapse

SERVER_GEM_NAME =
'eyes_universal'

Instance Method Summary collapse

Instance Method Details

#executable_filepathObject



13
14
15
16
# File 'lib/applitools/universal_sdk/executable_finder.rb', line 13

def executable_filepath
  raise 'Universal server unrecognized' unless File.exist?(filepath) && File.executable?(filepath)
  filepath
end

#filepathObject



9
10
11
# File 'lib/applitools/universal_sdk/executable_finder.rb', line 9

def filepath
  server_lib ? File.join(server_lib.gem_dir, 'ext', 'eyes-universal', filename) : ''
end