Module: Dependabot::Bundler::NativeHelpers

Defined in:
lib/dependabot/bundler/native_helpers.rb

Class Method Summary collapse

Class Method Details

.helper_pathObject



6
7
8
# File 'lib/dependabot/bundler/native_helpers.rb', line 6

def self.helper_path
  "bundle exec ruby #{File.join(native_helpers_root, 'run.rb')}"
end

.native_helpers_rootObject



10
11
12
13
14
15
# File 'lib/dependabot/bundler/native_helpers.rb', line 10

def self.native_helpers_root
  helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"]
  return File.join(helpers_root, "bundler") unless helpers_root.nil?

  File.join(__dir__, "../../../helpers")
end