From c4db3c1ef4a563eda49554946f065e449e3e26f8 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 20 Jul 2014 21:11:19 -0300 Subject: [PATCH] Use $HOME/.composer/cache as the root for the composer bucket Fixes GH-89 --- lib/vagrant-cachier/bucket/composer.rb | 2 +- lib/vagrant-cachier/cap/linux/composer_path.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-cachier/bucket/composer.rb b/lib/vagrant-cachier/bucket/composer.rb index 62b84b2..1367fa9 100644 --- a/lib/vagrant-cachier/bucket/composer.rb +++ b/lib/vagrant-cachier/bucket/composer.rb @@ -9,7 +9,7 @@ module VagrantPlugins def install if guest.capability?(:composer_path) if composer_path = guest.capability(:composer_path) - symlink(composer_path, create_parent: false) + symlink(composer_path) end else @env[:ui].info I18n.t('vagrant_cachier.skipping_bucket', bucket: 'Composer') diff --git a/lib/vagrant-cachier/cap/linux/composer_path.rb b/lib/vagrant-cachier/cap/linux/composer_path.rb index db89b7a..d1e47ac 100644 --- a/lib/vagrant-cachier/cap/linux/composer_path.rb +++ b/lib/vagrant-cachier/cap/linux/composer_path.rb @@ -11,7 +11,7 @@ module VagrantPlugins composer_path = output.chomp if buffer == :stdout end end - return "#{composer_path}/.composer" + return "#{composer_path}/.composer/cache" end end end