Rewrite two if statements to improve readability

Change-Id: Icf9c7d7cc21f7551250cab482033721555c27030
This commit is contained in:
Christian Berendt
2014-08-07 10:37:31 +02:00
parent 14d1bc632c
commit 54c8738d30

10
Vagrantfile vendored
View File

@@ -76,14 +76,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#
# The boot time is long for these, so I recommend that you convert to a local
# version as soon as you can.
if conf['box_name']
config.vm.box = conf['box_name']
else
config.vm.box = 'ubuntu/trusty64'
end
if conf['box_url']
config.vm.box_url = conf['box_url']
end
config.vm.box = conf['box_name'] || 'ubuntu/trusty64'
config.vm.box_url = conf['box_url'] if conf['box_url']
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box