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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
97ec24f0
Commit
97ec24f0
authored
8 years ago
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
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
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/ci/config/node/image.rb
View file @
97ec24f0
...
...
@@ -11,10 +11,6 @@ module Gitlab
validations
do
validates
:config
,
type:
String
end
def
value
@config
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/ci/config/node/script.rb
View file @
97ec24f0
...
...
@@ -11,10 +11,6 @@ module Gitlab
validations
do
validates
:config
,
array_of_strings:
true
end
def
value
@config
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/ci/config/node/services.rb
View file @
97ec24f0
...
...
@@ -11,10 +11,6 @@ module Gitlab
validations
do
validates
:config
,
array_of_strings:
true
end
def
value
@config
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
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