Skip to content

Commit 3c52a5e

Browse files
committed
add documentation for node_js_installed?
1 parent 284b445 commit 3c52a5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/language_pack/ruby.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ def node_bp_bin_path
692692
"#{Dir.pwd}/#{NODE_BP_PATH}"
693693
end
694694

695+
# checks if node.js is installed via the official heroku-buildpack-nodejs using multibuildpack
696+
# @return [Boolean] true if it's detected and false if it isn't
695697
def node_js_installed?
696698
@node_js_installed ||= run("#{node_bp_bin_path}/node -v") && $?.success?
697699
end

0 commit comments

Comments
 (0)