summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 12:06:37 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-08-12 12:06:37 +0200
commit706d872eb2ebb462b5c226890120f51cf15ba7c5 (patch)
tree89a4e2d0727c1dfa67386004d8f7300ed1a211d2
parentca162699ebaf592f66a3fc5ae78ad94d3c87af3b (diff)
downloadgitlab-ce-706d872eb2ebb462b5c226890120f51cf15ba7c5.tar.gz
Make `execute_methods` public
-rw-r--r--app/models/ci/pipeline.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 40615097804..ad836bbebb8 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -255,13 +255,13 @@ module Ci
self.duration = statuses.latest.duration
end
- private
-
def execute_hooks
project.execute_hooks(pipeline_data, :pipeline_hooks)
project.execute_services(pipeline_data, :pipeline_hooks)
end
+ private
+
def pipeline_data
Gitlab::DataBuilder::Pipeline.build(self)
end