vagrant-cachier-ng/lib/vagrant-cachier/bucket/composer.rb

23 lines
574 B
Ruby
Raw Normal View History

module VagrantPlugins
module Cachier
class Bucket
class Composer < Bucket
def self.capability
:composer_path
end
def install
if guest.capability?(:composer_path)
if composer_path = guest.capability(:composer_path)
2013-10-22 14:42:29 +00:00
bucket_path = "/tmp/vagrant-cache/#{@name}"
symlink(composer_path, create_parent: false)
end
else
@env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Composer')
end
end
end
end
end
end