Class: Npm

Inherits:
Passenger show all
Defined in:
lib/exogenesis/passengers/npm.rb

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

#upObject



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