Module: Dependabot::Python::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object


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

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

.native_helpers_rootObject


18
19
20
21
# File 'lib/dependabot/python/native_helpers.rb', line 18

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

.python_helper_pathObject


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

def self.python_helper_path
  clean_path(File.join(python_helpers_dir, "run.py"))
end

.python_helpers_dirObject


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

def self.python_helpers_dir
  File.join(native_helpers_root, "python/helpers")
end

.python_requirements_pathObject


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

def self.python_requirements_path
  clean_path(File.join(python_helpers_dir, "requirements.txt"))
end