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