Sha256: 074a43f26503cafe48e1b432a465b480c2f6c46c86f4bf62c797e48f667c33cc

Contents?: true

Size: 588 Bytes

Versions: 13

Compression:

Stored size: 588 Bytes

Contents

#!/usr/bin/env ruby
# Copyright (c) 2021 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

13 entries across 13 versions & 1 rubygems

Version Path
contrast-agent-4.14.1 exe/contrast_service
contrast-agent-4.14.0 exe/contrast_service
contrast-agent-4.13.1 exe/contrast_service
contrast-agent-4.13.0 exe/contrast_service
contrast-agent-4.12.0 exe/contrast_service
contrast-agent-4.11.0 exe/contrast_service
contrast-agent-4.10.0 exe/contrast_service
contrast-agent-4.9.1 exe/contrast_service
contrast-agent-4.9.0 exe/contrast_service
contrast-agent-4.8.0 exe/contrast_service
contrast-agent-4.7.0 exe/contrast_service
contrast-agent-4.6.0 exe/contrast_service
contrast-agent-4.5.0 exe/contrast_service