2013-10-23 12:44:49 +00:00
|
|
|
module VagrantPlugins
|
|
|
|
module Cachier
|
|
|
|
class Bucket
|
|
|
|
class Npm < Bucket
|
|
|
|
def self.capability
|
|
|
|
:npm_cache_dir
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
if guest.capability?(:npm_cache_dir)
|
|
|
|
guest_path = guest.capability(:npm_cache_dir)
|
2014-02-14 03:15:43 +00:00
|
|
|
user_symlink(guest_path) if guest_path
|
2013-10-23 12:44:49 +00:00
|
|
|
else
|
|
|
|
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'npm')
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|