Commit df1457dd authored by Pedro Pombeiro's avatar Pedro Pombeiro

Add `#to_s` methods to aid debugging

parent b5bd74f8
......@@ -95,6 +95,10 @@ module Gitlab
new_collection
end
def to_s
"#{@variables_by_key.keys}, @errors='#{@errors}'"
end
protected
attr_reader :variables
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment