Class: Gitlab::Ci::Pipeline::Seed::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/seed/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pipeline, root_variables: [], logger: nil) ⇒ Context

Returns a new instance of Context.


10
11
12
13
14
# File 'lib/gitlab/ci/pipeline/seed/context.rb', line 10

def initialize(pipeline, root_variables: [], logger: nil)
  @pipeline = pipeline
  @root_variables = root_variables
  @logger = logger || build_logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.


8
9
10
# File 'lib/gitlab/ci/pipeline/seed/context.rb', line 8

def logger
  @logger
end

#pipelineObject (readonly)

Returns the value of attribute pipeline.


8
9
10
# File 'lib/gitlab/ci/pipeline/seed/context.rb', line 8

def pipeline
  @pipeline
end

#root_variablesObject (readonly)

Returns the value of attribute root_variables.


8
9
10
# File 'lib/gitlab/ci/pipeline/seed/context.rb', line 8

def root_variables
  @root_variables
end