summaryrefslogtreecommitdiff
path: root/app/models/service.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-28 11:35:43 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-28 11:35:43 +0300
commita18ae13e985d07fe9ef8288794778d31e2435696 (patch)
treee3dc0105a27a0739618e140756756de95087ec42 /app/models/service.rb
parent49c50ee868cc355ae8d748ec67fce2e01311697f (diff)
downloadgitlab-ce-a18ae13e985d07fe9ef8288794778d31e2435696.tar.gz
Backport CI service refactoring from EE
It allows easier contribution of different CI services Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/service.rb')
-rw-r--r--app/models/service.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/service.rb b/app/models/service.rb
index ea000395218..d655937079d 100644
--- a/app/models/service.rb
+++ b/app/models/service.rb
@@ -33,6 +33,10 @@ class Service < ActiveRecord::Base
active
end
+ def category
+ :common
+ end
+
def title
# implement inside child
end
@@ -41,6 +45,10 @@ class Service < ActiveRecord::Base
# implement inside child
end
+ def help
+ # implement inside child
+ end
+
def to_param
# implement inside child
end