Module: Prof::ExternalSpec::Helpers::ProductPath

Defined in:
lib/prof/external_spec/helpers/product_path.rb

Instance Method Summary collapse

Instance Method Details

#product_pathObject



15
16
17
18
19
# File 'lib/prof/external_spec/helpers/product_path.rb', line 15

def product_path
  artifact_path = ENV.fetch('TEMPEST_ARTIFACT_PATH') { raise 'Must set TEMPEST_ARTIFACT_PATH environment variable' }
  fail "Can't find artifact at #{artifact_path}" unless File.exist?(artifact_path)
  artifact_path
end