Class: GitLab::CI::Lint::Actions
- Defined in:
- lib/gitlab/ci/lint/actions.rb
Instance Method Summary collapse
Methods inherited from Client
Instance Method Details
#validate_gitlab_ci_yml(url, content, headers, timeout) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/gitlab/ci/lint/actions.rb', line 9 def validate_gitlab_ci_yml url, content, headers, timeout result = post(url, content, headers, timeout) = GitLab::CI::Lint::Serializer.new(result) if result["status"] == "valid" .success() else .failure() end end |