Skip to content
Snippets Groups Projects
Commit 97ec24f0 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Return CI entry config as value by default

parent d3991289
Branches
Tags
1 merge request!4820Move global ci entries handling from legacy to new config
Pipeline #
Loading
@@ -9,7 +9,8 @@ module Gitlab
Loading
@@ -9,7 +9,8 @@ module Gitlab
class InvalidError < StandardError; end class InvalidError < StandardError; end
   
attr_reader :config attr_reader :config
attr_accessor :key, :description attr_accessor :description
attr_writer :key
   
def initialize(config) def initialize(config)
@config = config @config = config
Loading
@@ -48,7 +49,7 @@ module Gitlab
Loading
@@ -48,7 +49,7 @@ module Gitlab
end end
   
def value def value
raise NotImplementedError @config
end end
   
def self.nodes def self.nodes
Loading
Loading
Loading
@@ -11,10 +11,6 @@ module Gitlab
Loading
@@ -11,10 +11,6 @@ module Gitlab
validations do validations do
validates :config, type: String validates :config, type: String
end end
def value
@config
end
end end
end end
end end
Loading
Loading
Loading
@@ -11,10 +11,6 @@ module Gitlab
Loading
@@ -11,10 +11,6 @@ module Gitlab
validations do validations do
validates :config, array_of_strings: true validates :config, array_of_strings: true
end end
def value
@config
end
end end
end end
end end
Loading
Loading
Loading
@@ -11,10 +11,6 @@ module Gitlab
Loading
@@ -11,10 +11,6 @@ module Gitlab
validations do validations do
validates :config, array_of_strings: true validates :config, array_of_strings: true
end end
def value
@config
end
end end
end end
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment