mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 07:36:41 +10:00
Return CI entry config as value by default
This commit is contained in:
@@ -9,7 +9,8 @@ module Gitlab
|
||||
class InvalidError < StandardError; end
|
||||
|
||||
attr_reader :config
|
||||
attr_accessor :key, :description
|
||||
attr_accessor :description
|
||||
attr_writer :key
|
||||
|
||||
def initialize(config)
|
||||
@config = config
|
||||
@@ -48,7 +49,7 @@ module Gitlab
|
||||
end
|
||||
|
||||
def value
|
||||
raise NotImplementedError
|
||||
@config
|
||||
end
|
||||
|
||||
def self.nodes
|
||||
|
||||
@@ -11,10 +11,6 @@ module Gitlab
|
||||
validations do
|
||||
validates :config, type: String
|
||||
end
|
||||
|
||||
def value
|
||||
@config
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,10 +11,6 @@ module Gitlab
|
||||
validations do
|
||||
validates :config, array_of_strings: true
|
||||
end
|
||||
|
||||
def value
|
||||
@config
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,10 +11,6 @@ module Gitlab
|
||||
validations do
|
||||
validates :config, array_of_strings: true
|
||||
end
|
||||
|
||||
def value
|
||||
@config
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user