lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.7.1 vs lib/vagrant-orchestrate/command/push.rb in vagrant-orchestrate-0.7.2

- old
+ new

@@ -129,11 +129,11 @@ # the smaller group is pushed to first. groups.last.unshift(groups.first.pop) if groups.any? && groups.first.size > groups.last.size groups end - # rubocop:disable Metrics/AbcSize, MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:disable MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity def deploy(options, *groups) groups.select! { |g| g.size > 0 } groups.each_with_index do |machines, index| next if machines.empty? if groups.size > 1 @@ -156,10 +156,10 @@ else return false unless prompt_for_continue end end end - # rubocop:enable Metrics/AbcSize, MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity + # rubocop:enable MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity def prompt_for_continue result = @env.ui.ask("Deployment paused for manual review. Would you like to continue? (y/n) ") if result.upcase != "Y" @env.ui.info("Deployment push action cancelled by user")