Sha256: 878b54967c9bd47eb9dca22ebdc1c296d218c1cd221c2fb8c37b00f484c2354d

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

module DevenvBuild
  module Provisioning
    class Nodejs < Base
      def help
        'Install NodeJS and up to-date NPM.'
      end

      def before
        <<-BEFORE
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
add-apt-repository https://deb.nodesource.com/node_8.x
BEFORE
      end

      def middle
        'apt-get -y install nodejs'
      end

      def after
        'npm install npm -g'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devenv_build-1.1.1 lib/devenv_build/provisioning/nodejs.rb
devenv_build-1.1.0 lib/devenv_build/provisioning/nodejs.rb