Module: Dependabot::Hex::NativeHelpers

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

Class Method Summary collapse

Class Method Details

.clean_path(path) ⇒ Object


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

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

.hex_helpers_dirObject


6
7
8
9
10
11
# File 'lib/dependabot/hex/native_helpers.rb', line 6

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

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