Sha256: 33adec3e2a329d59432aa202c1ade0aeb4f98498f17ed19b5981b0b4e670f664

Contents?: true

Size: 636 Bytes

Versions: 2

Compression:

Stored size: 636 Bytes

Contents

module VagrantPlugins
  module Ventriloquist
    module Cap
      module Debian
        module NodejsInstall
          def self.nodejs_install(machine)
            return if machine.communicate.test('which nodejs > /dev/null')

            machine.env.ui.info('Installing nodejs')
            machine.communicate.tap do |comm|
              comm.sudo('apt-get install -y software-properties-common')
              comm.sudo('add-apt-repository -y ppa:chris-lea/node.js')
              comm.sudo('apt-get update')
              comm.sudo("apt-get install -y nodejs")
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ventriloquist-0.2.0 lib/ventriloquist/cap/debian/nodejs_install.rb
ventriloquist-0.1.0 lib/ventriloquist/cap/debian/nodejs_install.rb