Sha256: 8657c3b3c3401ac68845757c4b7aee1fdaa4a82b46b56cb9f7cd5dd529d99192

Contents?: true

Size: 541 Bytes

Versions: 4

Compression:

Stored size: 541 Bytes

Contents

class Jets::CLI::Ci
  class Tailer < Jets::Remote::Tailer
    def show_if
      return true unless Jets.bootstrap.config.codebuild.logging.show == "filtered"

      start_marker = "Entering phase BUILD"
      end_marker = "Phase complete: BUILD"
      proc do |event|
        @display_showing ||= event.message.include?(start_marker)
        if @display_showing && event.message.include?(end_marker)
          @display_showing = false
        end
        @display_showing && !event.message.include?(start_marker)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/cli/ci/tailer.rb
jets-6.0.4 lib/jets/cli/ci/tailer.rb
jets-6.0.3 lib/jets/cli/ci/tailer.rb
jets-6.0.2 lib/jets/cli/ci/tailer.rb