Module: VagrantPlugins::ProxyConf::Cap::Linux::NpmProxyConf

Defined in:
lib/vagrant-proxyconf/cap/linux/npm_proxy_conf.rb

Overview

Capability for npm proxy configuration

Class Method Summary collapse

Class Method Details

.npm_proxy_conf(machine) ⇒ String, false

Returns the path to npm or ‘false` if not found.

Returns:

  • (String, false)

    the path to npm or ‘false` if not found



10
11
12
# File 'lib/vagrant-proxyconf/cap/linux/npm_proxy_conf.rb', line 10

def self.npm_proxy_conf(machine)
  Util.which(machine, 'npm')
end