Class: Gitlab::Ci::Status::Build::Scheduled

Inherits:
Extended
  • Object
show all
Defined in:
lib/gitlab/ci/status/build/scheduled.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Extended

#initialize

Constructor Details

This class inherits a constructor from Gitlab::Ci::Status::Extended

Class Method Details

.matches?(build, user) ⇒ Boolean

Returns:

  • (Boolean)

24
25
26
# File 'lib/gitlab/ci/status/build/scheduled.rb', line 24

def self.matches?(build, user)
  build.scheduled? && build.scheduled_at
end

Instance Method Details

#illustrationObject


8
9
10
11
12
13
14
15
16
17
18
# File 'lib/gitlab/ci/status/build/scheduled.rb', line 8

def illustration
  {
    image: 'illustrations/illustrations_scheduled-job_countdown.svg',
    size: 'svg-394',
    title: _("This is a delayed job to run in %{remainingTime}"),
    content: _("This job will automatically run after its timer finishes. " \
               "Often they are used for incremental roll-out deploys " \
               "to production environments. When unscheduled it converts " \
               "into a manual action.")
  }
end

#status_tooltipObject


20
21
22
# File 'lib/gitlab/ci/status/build/scheduled.rb', line 20

def status_tooltip
  "delayed manual action (%{remainingTime})"
end