Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
97ec24f0
Commit
97ec24f0
authored
Jun 21, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return CI entry config as value by default
parent
d3991289
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
14 deletions
+3
-14
lib/gitlab/ci/config/node/entry.rb
lib/gitlab/ci/config/node/entry.rb
+3
-2
lib/gitlab/ci/config/node/image.rb
lib/gitlab/ci/config/node/image.rb
+0
-4
lib/gitlab/ci/config/node/script.rb
lib/gitlab/ci/config/node/script.rb
+0
-4
lib/gitlab/ci/config/node/services.rb
lib/gitlab/ci/config/node/services.rb
+0
-4
No files found.
lib/gitlab/ci/config/node/entry.rb
View file @
97ec24f0
...
@@ -9,7 +9,8 @@ module Gitlab
...
@@ -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
...
@@ -48,7 +49,7 @@ module Gitlab
...
@@ -48,7 +49,7 @@ module Gitlab
end
end
def
value
def
value
raise
NotImplementedError
@config
end
end
def
self
.
nodes
def
self
.
nodes
...
...
lib/gitlab/ci/config/node/image.rb
View file @
97ec24f0
...
@@ -11,10 +11,6 @@ module Gitlab
...
@@ -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
...
...
lib/gitlab/ci/config/node/script.rb
View file @
97ec24f0
...
@@ -11,10 +11,6 @@ module Gitlab
...
@@ -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
...
...
lib/gitlab/ci/config/node/services.rb
View file @
97ec24f0
...
@@ -11,10 +11,6 @@ module Gitlab
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment