From 828793afdeb97d705aa2c7214902b0c6f23a1121 Mon Sep 17 00:00:00 2001 From: fh Date: Tue, 22 Oct 2013 16:42:29 +0200 Subject: [PATCH] removing trailing slashes and chomp() --- lib/vagrant-cachier/bucket/composer.rb | 4 +--- lib/vagrant-cachier/cap/linux/composer_path.rb | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/vagrant-cachier/bucket/composer.rb b/lib/vagrant-cachier/bucket/composer.rb index dff71b5..cb939ad 100644 --- a/lib/vagrant-cachier/bucket/composer.rb +++ b/lib/vagrant-cachier/bucket/composer.rb @@ -12,9 +12,7 @@ module VagrantPlugins if guest.capability?(:composer_path) if composer_path = guest.capability(:composer_path) - bucket_path = "/tmp/vagrant-cache/#{@name}/" - #remove trailing slash, or symlink will fail - composer_path = composer_path.chomp('/') + bucket_path = "/tmp/vagrant-cache/#{@name}" @env[:cache_dirs] << composer_path machine.communicate.tap do |comm| diff --git a/lib/vagrant-cachier/cap/linux/composer_path.rb b/lib/vagrant-cachier/cap/linux/composer_path.rb index 3e9116c..605fde7 100644 --- a/lib/vagrant-cachier/cap/linux/composer_path.rb +++ b/lib/vagrant-cachier/cap/linux/composer_path.rb @@ -4,7 +4,7 @@ module VagrantPlugins module Linux module ComposerPath def self.composer_path(machine) - composer_path = '/home/vagrant/.composer/' + composer_path = '/home/vagrant/.composer' return composer_path end end