Module: Dependabot::Composer::NativeHelpers

Extended by:
T::Sig
Defined in:
lib/dependabot/composer/native_helpers.rb

Class Method Summary collapse

Class Method Details

.composer_helper_path(composer_version: "2") ⇒ Object



12
13
14
# File 'lib/dependabot/composer/native_helpers.rb', line 12

def self.composer_helper_path(composer_version: "2")
  File.join(composer_helpers_dir, "v#{composer_version}", "bin/run")
end

.composer_helpers_dirObject



17
18
19
# File 'lib/dependabot/composer/native_helpers.rb', line 17

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

.native_helpers_rootObject



22
23
24
25
# File 'lib/dependabot/composer/native_helpers.rb', line 22

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