Class: VagrantPlugins::Cachier::Bucket::Npm
- Inherits:
-
VagrantPlugins::Cachier::Bucket
- Object
- VagrantPlugins::Cachier::Bucket
- VagrantPlugins::Cachier::Bucket::Npm
- Defined in:
- lib/vagrant-cachier/bucket/npm.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from VagrantPlugins::Cachier::Bucket
auto_detect, bucket_name, #comm, #empty_dir?, #guest, inherited, #initialize, install, #machine, #symlink, #symlink?, #user_symlink
Constructor Details
This class inherits a constructor from VagrantPlugins::Cachier::Bucket
Class Method Details
.capability ⇒ Object
5 6 7 |
# File 'lib/vagrant-cachier/bucket/npm.rb', line 5 def self.capability :npm_cache_dir end |
Instance Method Details
#install ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant-cachier/bucket/npm.rb', line 9 def install if guest.capability?(:npm_cache_dir) guest_path = guest.capability(:npm_cache_dir) user_symlink(guest_path) if guest_path else @env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'npm') end end |