lib/fulmar/domain/task/versions.rake in fulmar-1.4.1 vs lib/fulmar/domain/task/versions.rake in fulmar-1.4.2

- old
+ new

@@ -12,10 +12,10 @@ end unless @versioned_servers.empty? @versioned_servers.each_key do |env| - target_count = @versioned_servers.keys.reduce(0) { |sum, target| sum + 1 if target.split(':').first == env.split(':').first } + target_count = @versioned_servers.keys.reduce(0) { |sum, target| target.split(':').first == env.split(':').first ? sum + 1 : sum } namespace :list do # Count of there are multiple targets within the environment # if not, we can omit the target name in the task and shorten it a bit # This should work in most cases.