-
-
Notifications
You must be signed in to change notification settings - Fork 649
Conversation
@@ -1,6 +1,7 @@ | |||
# -*- mode: ruby -*- | |||
# vi: set ft=ruby : | |||
VAGRANTFILE_API_VERSION = '2' unless defined? VAGRANTFILE_API_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really see the point of defining this when it could technically be overridden by an earlier vagrant
command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Vagrantfile
Outdated
config.vm.network :public_network, ip: vconfig['vagrant_public_ip'] | ||
if vconfig['vagrant_public_ip'] | ||
config.vm.network :public_network, | ||
ip: vconfig['vagrant_public_ip'] != '0.0.0.0' ? vconfig['vagrant_public_ip'] : nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My personal preference but I know some prefer to avoid ternary expressions so let me know if you want me to revert it. Also I'm only assuming nil
will be the same as not setting the option at all. Should verify that.
Vagrantfile
Outdated
} | ||
if synced_folder.include?('options_override') | ||
synced_folder['options_override'].each do |key, value| | ||
options[key.to_sym] = value | ||
end | ||
end | ||
config.vm.synced_folder synced_folder['local_path'], synced_folder['destination'], options | ||
config.vm.synced_folder synced_folder.fetch('local_path'), synced_folder.fetch('destination'), options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As these keys are required, it will now throw a key not found (KeyError) if not set.
e4f41aa
to
9b15f62
Compare
19c9b2d
to
2df9583
Compare
2df9583
to
98fe9f3
Compare
a14cee2
to
b687a8b
Compare
ConditionalAssignment: No way IndentArray: No way AlignParameters: No way
rsync__auto is true by default already. rsync__args has --copy-links as a default.
b687a8b
to
e3f5751
Compare
While we're on the 'potential to break small things' release train... I'll loop this into the 4.5.0 release as well. |
Inspired by roots/trellis#828.
A first stab at a simple Vagrantfile logic split. Thoughts?