BigW Consortium Gitlab

Commit 13f44822 by Douwe Maan

Move CombinedPipeline methods around

parent 611912fe
...@@ -7,16 +7,18 @@ module Gitlab ...@@ -7,16 +7,18 @@ module Gitlab
Class.new(Pipeline) do Class.new(Pipeline) do
const_set :PIPELINES, pipelines const_set :PIPELINES, pipelines
def self.pipelines
self::PIPELINES
end
def self.filters def self.filters
pipelines.flat_map(&:filters) pipelines.flat_map(&:filters)
end end
def self.transform_context(context) def self.transform_context(context)
pipelines.reduce(context) { |context, pipeline| pipeline.transform_context(context) } pipelines.reduce(context) do |context, pipeline|
end pipeline.transform_context(context)
end
def self.pipelines
self::PIPELINES
end end
end end
end end
......
...@@ -3,7 +3,7 @@ require 'gitlab/markdown' ...@@ -3,7 +3,7 @@ require 'gitlab/markdown'
module Gitlab module Gitlab
module Markdown module Markdown
class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline) class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline)
end end
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment