Module: Dependabot::GoModules::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object


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

def self.clean_path(path)
  Pathname.new(path).cleanpath.to_path
end

.helper_pathObject


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

def self.helper_path
  clean_path(File.join(native_helpers_root, "go_modules/bin/helper"))
end

.native_helpers_rootObject


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

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