Move CombinedPipeline methods around
This commit is contained in:
parent
611912fe68
commit
13f44822d9
2 changed files with 8 additions and 6 deletions
|
@ -7,16 +7,18 @@ module Gitlab
|
|||
Class.new(Pipeline) do
|
||||
const_set :PIPELINES, pipelines
|
||||
|
||||
def self.pipelines
|
||||
self::PIPELINES
|
||||
end
|
||||
|
||||
def self.filters
|
||||
pipelines.flat_map(&:filters)
|
||||
end
|
||||
|
||||
def self.transform_context(context)
|
||||
pipelines.reduce(context) { |context, pipeline| pipeline.transform_context(context) }
|
||||
end
|
||||
|
||||
def self.pipelines
|
||||
self::PIPELINES
|
||||
pipelines.reduce(context) do |context, pipeline|
|
||||
pipeline.transform_context(context)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'gitlab/markdown'
|
|||
module Gitlab
|
||||
module Markdown
|
||||
class FullPipeline < CombinedPipeline.new(PlainMarkdownPipeline, GfmPipeline)
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue