Class: Gitlab::Ci::Status::Build::Factory

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

Class Method Summary collapse

Methods inherited from Factory

#compound_extended_status, #core_status, #extended_statuses, #fabricate!, #initialize

Constructor Details

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

Class Method Details

.common_helpersObject


30
31
32
# File 'lib/gitlab/ci/status/build/factory.rb', line 30

def self.common_helpers
  Status::Build::Common
end

.extended_statusesObject


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/gitlab/ci/status/build/factory.rb', line 8

def self.extended_statuses
  [[Status::Build::Erased,
    Status::Build::Scheduled,
    Status::Build::Manual,
    Status::Build::Canceled,
    Status::Build::Created,
    Status::Build::WaitingForResource,
    Status::Build::Preparing,
    Status::Build::Pending,
    Status::Build::Skipped],
   [Status::Build::Cancelable,
    Status::Build::Retryable],
   [Status::Build::FailedUnmetPrerequisites,
    Status::Build::Failed],
   [Status::Build::FailedAllowed,
    Status::Build::Unschedule,
    Status::Build::Play,
    Status::Build::Stop],
   [Status::Build::Action],
   [Status::Build::Retried]]
end