25 lines
556 B
Ruby
25 lines
556 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Ci
|
|
module Pipeline
|
|
module Seed
|
|
class Context
|
|
attr_reader :pipeline, :root_variables, :logger
|
|
|
|
def initialize(pipeline, root_variables: [], logger: nil)
|
|
@pipeline = pipeline
|
|
@root_variables = root_variables
|
|
@logger = logger || build_logger
|
|
end
|
|
|
|
private
|
|
|
|
def build_logger
|
|
::Gitlab::Ci::Pipeline::Logger.new(project: pipeline.project)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|