Module: Dependabot::Python::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object



33
34
35
# File 'lib/dependabot/python/native_helpers.rb', line 33

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

.native_helpers_rootObject



27
28
29
30
# File 'lib/dependabot/python/native_helpers.rb', line 27

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

.python_helper_pathObject



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

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

.python_helpers_dirObject



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

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

.python_requirements_pathObject



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

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