Prefer extend self over module_function, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13672004 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5620#note_13810498
This commit is contained in:
parent
abd3ac4a03
commit
0a20897bbe
|
@ -1,7 +1,7 @@
|
|||
module Gitlab
|
||||
module DataBuilder
|
||||
module BuildDataBuilder
|
||||
module_function
|
||||
extend self
|
||||
|
||||
def build(build)
|
||||
project = build.project
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module Gitlab
|
||||
module DataBuilder
|
||||
module NoteDataBuilder
|
||||
module_function
|
||||
extend self
|
||||
|
||||
# Produce a hash of post-receive data
|
||||
#
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module Gitlab
|
||||
module DataBuilder
|
||||
module PipelineDataBuilder
|
||||
module_function
|
||||
extend self
|
||||
|
||||
def build(pipeline)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module Gitlab
|
||||
module DataBuilder
|
||||
module PushDataBuilder
|
||||
module_function
|
||||
extend self
|
||||
|
||||
# Produce a hash of post-receive data
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue