Sha256: 038bf68933f14066245e7b404300a349f93d3743a678e9b9dad370f36271f2b4
Contents?: true
Size: 736 Bytes
Versions: 19
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true require_relative "../ext/environment" require_relative "../git/local_repository" module Datadog module CI module Utils module Bundle def self.location require "bundler" bundle_path = Bundler.bundle_path.to_s bundle_path if bundle_path&.start_with?(Datadog::CI::Git::LocalRepository.root) rescue => e Datadog.logger.warn("Failed to find bundled gems location: #{e}") Ext::Environment::POSSIBLE_BUNDLE_LOCATIONS.each do |location| path = File.join(Datadog::CI::Git::LocalRepository.root, location) return path if File.directory?(path) end nil end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems