Module: Dependabot::Hex::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object



20
21
22
# File 'lib/dependabot/hex/native_helpers.rb', line 20

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

.hex_helpers_dirObject



12
13
14
15
16
17
# File 'lib/dependabot/hex/native_helpers.rb', line 12

def self.hex_helpers_dir
  helpers_root = ENV.fetch("DEPENDABOT_NATIVE_HELPERS_PATH", nil)
  return File.join(helpers_root, "hex") unless helpers_root.nil?

  File.join(__dir__, "../../../../hex/helpers")
end