Class: Gitlab::Ci::Build::Prerequisite::Base

Inherits:
Object
  • Object
show all
Includes:
Utils::StrongMemoize
Defined in:
lib/gitlab/ci/build/prerequisite/base.rb

Direct Known Subclasses

KubernetesNamespace

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Constructor Details

#initialize(build) ⇒ Base

Returns a new instance of Base.


12
13
14
# File 'lib/gitlab/ci/build/prerequisite/base.rb', line 12

def initialize(build)
  @build = build
end

Instance Attribute Details

#buildObject (readonly)

Returns the value of attribute build


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

def build
  @build
end

Instance Method Details

#complete!Object

Raises:

  • (NotImplementedError)

20
21
22
# File 'lib/gitlab/ci/build/prerequisite/base.rb', line 20

def complete!
  raise NotImplementedError
end

#unmet?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)

16
17
18
# File 'lib/gitlab/ci/build/prerequisite/base.rb', line 16

def unmet?
  raise NotImplementedError
end