Sha256: e6db3a2572fcf3d62e694d0a55f895385ebbb55463e196be7cb5334cc8ed7121

Contents?: true

Size: 253 Bytes

Versions: 5

Compression:

Stored size: 253 Bytes

Contents

module Chicanery
  module Summary
    def has_failure?
      self[:servers].map do |name,jobs|
        jobs.map do |name, state|
          state[:last_build_status] == :failure
        end
      end.flatten.inject(false) {|v,a| v || a}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
chicanery-0.1.0 lib/chicanery/summary.rb
chicanery-0.0.9 lib/chicanery/summary.rb
chicanery-0.0.8 lib/chicanery/summary.rb
chicanery-0.0.7 lib/chicanery/summary.rb
chicanery-0.0.6 lib/chicanery/summary.rb