module BinInstall::Node

Public Class Methods

install() click to toggle source
# File lib/bin_install/node.rb, line 3
def self.install
  puts 'Installing Node.js...'.white
  Brew::Package.install_or_upgrade('node')
end
install!() click to toggle source
# File lib/bin_install/node.rb, line 8
def self.install!
  puts 'Installing Node.js...'.white
  Brew::Package.install_or_upgrade!('node')
end
installed?() click to toggle source
# File lib/bin_install/node.rb, line 13
def self.installed?
  Shell.executable_exists?('node')
end