removing trailing slashes and chomp()

This commit is contained in:
fh 2013-10-22 16:42:29 +02:00
parent 817d964b8e
commit 828793afde
2 changed files with 2 additions and 4 deletions

View file

@ -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|

View file

@ -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