Class: Jets::CLI::Ci::Tailer
- Inherits:
-
Remote::Tailer
- Object
- Remote::Base
- Remote::Tailer
- Jets::CLI::Ci::Tailer
- Defined in:
- lib/jets/cli/ci/tailer.rb
Instance Method Summary collapse
Methods inherited from Remote::Tailer
#build_phase_started?, #build_time, #cloudwatch_tail, #complete_failed?, #display_failed_phases, #display_phase, #display_time_took, #filter_phase_type?, #find_build, #initialize, #logs_command?, #output, #phase_duration, #phase_status, #print_phases, #run, #say, #set_log_group_name, #start_cloudwatch_tail, #stop_cloudwatch_tail
Methods included from Util::Pretty
#pretty_home, #pretty_path, #pretty_time
Methods inherited from Remote::Base
Methods included from Util::Logging
Methods included from AwsServices
#apigateway, #aws_options, #cfn, #codebuild, #dynamodb, #lambda_client, #logs, #s3, #s3_resource, #sns, #sqs, #ssm, #sts, #wafv2
Methods included from AwsServices::StackStatus
Methods included from AwsServices::GlobalMemoist
Constructor Details
This class inherits a constructor from Jets::Remote::Tailer
Instance Method Details
#show_if ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/jets/cli/ci/tailer.rb', line 3 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..include?(start_marker) if @display_showing && event..include?(end_marker) @display_showing = false end @display_showing && !event..include?(start_marker) end end |