Module: Dependabot::NpmAndYarn::NativeHelpers
- Defined in:
- lib/dependabot/npm_and_yarn/native_helpers.rb
Class Method Summary collapse
- .default_helpers_dir ⇒ Object
- .npm_helper_path ⇒ Object
- .npm_helpers_dir ⇒ Object
- .yarn_helper_path ⇒ Object
- .yarn_helpers_dir ⇒ Object
Class Method Details
.default_helpers_dir ⇒ Object
32 33 34 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 32 def self.default_helpers_dir File.join(__dir__, "../../../../npm_and_yarn/helpers") end |
.npm_helper_path ⇒ Object
6 7 8 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 6 def self.npm_helper_path File.join(npm_helpers_dir, "bin/run.js") end |
.npm_helpers_dir ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 10 def self.npm_helpers_dir helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"] unless helpers_root.nil? return File.join(helpers_root, "npm_and_yarn/npm") end File.join(default_helpers_dir, "npm") end |
.yarn_helper_path ⇒ Object
19 20 21 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 19 def self.yarn_helper_path File.join(yarn_helpers_dir, "bin/run.js") end |
.yarn_helpers_dir ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/dependabot/npm_and_yarn/native_helpers.rb', line 23 def self.yarn_helpers_dir helpers_root = ENV["DEPENDABOT_NATIVE_HELPERS_PATH"] unless helpers_root.nil? return File.join(helpers_root, "npm_and_yarn/yarn") end File.join(default_helpers_dir, "yarn") end |