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 guest.capability?(:composer_path)
|
||||||
if composer_path = guest.capability(:composer_path)
|
if composer_path = guest.capability(:composer_path)
|
||||||
bucket_path = "/tmp/vagrant-cache/#{@name}/"
|
bucket_path = "/tmp/vagrant-cache/#{@name}"
|
||||||
#remove trailing slash, or symlink will fail
|
|
||||||
composer_path = composer_path.chomp('/')
|
|
||||||
@env[:cache_dirs] << composer_path
|
@env[:cache_dirs] << composer_path
|
||||||
|
|
||||||
machine.communicate.tap do |comm|
|
machine.communicate.tap do |comm|
|
||||||
|
|
|
@ -4,7 +4,7 @@ module VagrantPlugins
|
||||||
module Linux
|
module Linux
|
||||||
module ComposerPath
|
module ComposerPath
|
||||||
def self.composer_path(machine)
|
def self.composer_path(machine)
|
||||||
composer_path = '/home/vagrant/.composer/'
|
composer_path = '/home/vagrant/.composer'
|
||||||
return composer_path
|
return composer_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue