Sha256: a3f66c62ee0f95e44f3707529a73407ea8efcb81dccc2630dbc96467f486b417

Contents?: true

Size: 588 Bytes

Versions: 20

Compression:

Stored size: 588 Bytes

Contents

#!/usr/bin/env ruby
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

def mac?
  RUBY_PLATFORM.include?('darwin')
end

def path
  base_path = "#{ File.dirname(__FILE__) }/.."
  if mac?
    "#{ base_path }/service_executables/mac/contrast-service"
  else
    "#{ base_path }/service_executables/linux/contrast-service"
  end
end

executable_path = path
if File.exist?(executable_path)
  Kernel.exec(executable_path)
else
  puts "Service executable not found at: #{ executable_path }"
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 exe/contrast_service
contrast-agent-6.6.5 exe/contrast_service
contrast-agent-6.6.4 exe/contrast_service
contrast-agent-6.6.3 exe/contrast_service
contrast-agent-6.6.2 exe/contrast_service
contrast-agent-6.6.1 exe/contrast_service
contrast-agent-6.6.0 exe/contrast_service
contrast-agent-6.5.1 exe/contrast_service
contrast-agent-6.5.0 exe/contrast_service
contrast-agent-6.4.0 exe/contrast_service
contrast-agent-6.3.0 exe/contrast_service
contrast-agent-6.2.0 exe/contrast_service
contrast-agent-6.1.2 exe/contrast_service
contrast-agent-6.1.1 exe/contrast_service
contrast-agent-6.1.0 exe/contrast_service
contrast-agent-6.0.0 exe/contrast_service
contrast-agent-5.3.0 exe/contrast_service
contrast-agent-5.2.0 exe/contrast_service
contrast-agent-5.1.0 exe/contrast_service
contrast-agent-5.0.0 exe/contrast_service