Class: Npm
Overview
Install NPM and NPM packages REQUIRES: Homebrew (so put it after your homebrew task)
Instance Method Summary collapse
Methods inherited from Passenger
by_name, emoji_name, #initialize, needs, register_as, with_emoji
Constructor Details
This class inherits a constructor from Passenger
Instance Method Details
#up ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/exogenesis/passengers/npm.rb', line 10 def up install_node npms.each do |package| if installed.include? package update_package(package) else install_package(package) end end end |