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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
df1457dd
Commit
df1457dd
authored
Mar 15, 2021
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `#to_s` methods to aid debugging
parent
b5bd74f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
lib/gitlab/ci/variables/collection.rb
lib/gitlab/ci/variables/collection.rb
+4
-0
lib/gitlab/ci/variables/collection/item.rb
lib/gitlab/ci/variables/collection/item.rb
+6
-0
No files found.
lib/gitlab/ci/variables/collection.rb
View file @
df1457dd
...
...
@@ -95,6 +95,10 @@ module Gitlab
new_collection
end
def
to_s
"
#{
@variables_by_key
.
keys
}
, @errors='
#{
@errors
}
'"
end
protected
attr_reader
:variables
...
...
lib/gitlab/ci/variables/collection/item.rb
View file @
df1457dd
...
...
@@ -63,6 +63,12 @@ module Gitlab
raise
ArgumentError
,
"Unknown `
#{
resource
.
class
}
` variable resource!"
end
end
def
to_s
return
to_runner_variable
.
to_s
unless
depends_on
"
#{
to_runner_variable
}
, depends_on=
#{
depends_on
}
"
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