Sha256: 5161a91d265f7a3c23d17f435d31f1d4aaa17deb77f5ba8df96cc435fb207b72

Contents?: true

Size: 528 Bytes

Versions: 14

Compression:

Stored size: 528 Bytes

Contents

module VagrantPlugins
  module Cachier
    module Cap
      module Linux
        module NpmCacheDir
          def self.npm_cache_dir(machine)
            npm_cache_dir = nil
            machine.communicate.tap do |comm|
              return unless comm.test('which npm')
              comm.execute 'npm config get cache' do |buffer, output|
                npm_cache_dir = output.chomp if buffer == :stdout
              end
            end
            return npm_cache_dir
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vagrant-cachier-1.2.1 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-1.2.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-1.1.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-1.0.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.9.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.8.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.7.2 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.7.1 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.7.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.6.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.5.1 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.5.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.4.1 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb
vagrant-cachier-0.4.0 lib/vagrant-cachier/cap/linux/npm_cache_dir.rb