removing trailing slashes and chomp()
This commit is contained in:
parent
817d964b8e
commit
828793afde
2 changed files with 2 additions and 4 deletions
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue