Class: Gitlab::Ci::Build::Prerequisite::Factory

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(build) ⇒ Factory

Returns a new instance of Factory.


14
15
16
# File 'lib/gitlab/ci/build/prerequisite/factory.rb', line 14

def initialize(build)
  @build = build
end

Instance Attribute Details

#buildObject (readonly)

Returns the value of attribute build


8
9
10
# File 'lib/gitlab/ci/build/prerequisite/factory.rb', line 8

def build
  @build
end

Class Method Details

.prerequisitesObject


10
11
12
# File 'lib/gitlab/ci/build/prerequisite/factory.rb', line 10

def self.prerequisites
  [KubernetesNamespace]
end

Instance Method Details

#unmetObject


18
19
20
# File 'lib/gitlab/ci/build/prerequisite/factory.rb', line 18

def unmet
  build_prerequisites.select(&:unmet?)
end