Module: Dependabot::Composer::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.composer_helper_pathObject



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

def self.composer_helper_path
  File.join(composer_helpers_dir, "bin/run")
end

.composer_helpers_dirObject



10
11
12
# File 'lib/dependabot/composer/native_helpers.rb', line 10

def self.composer_helpers_dir
  File.join(native_helpers_root, "composer/helpers")
end

.native_helpers_rootObject



14
15
16
17
# File 'lib/dependabot/composer/native_helpers.rb', line 14

def self.native_helpers_root
  default_path = File.join(__dir__, "../../../..")
  ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", default_path)
end