lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.4.1 vs lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.4.2
- old
+ new
@@ -61,25 +61,25 @@
strategy = options[:strategy] || @env.vagrantfile.config.orchestrate.strategy
@env.ui.info("Pushing to managed servers using #{strategy} strategy.")
# Handle a couple of them more tricky edges.
strategy = :serial if machines.size == 1
- strategy = :blue_green if strategy.to_sym == :canary_blue_green && machines.size == 2
+ strategy = :half_half if strategy.to_sym == :canary_half_half && machines.size == 2
case strategy.to_sym
when :serial
options[:parallel] = false
result = deploy(options, machines)
when :parallel
result = deploy(options, machines)
when :canary
# A single canary server and then the rest
result = deploy(options, machines.take(1), machines.drop(1))
- when :blue_green
+ when :half_half
# Split into two (almost) equal groups
groups = split(machines)
result = deploy(options, groups.first, groups.last)
- when :canary_blue_green
+ when :canary_half_half
# A single canary and then two equal groups
canary = machines.take(1)
groups = split(machines.drop(1))
result = deploy(options, canary, groups.first, groups.last)
else