debian-mirror-gitlab/lib/gitlab/ci/pipeline/seed/context.rb
2022-03-02 08:16:31 +05:30

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