Commit d4522de2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Revert adding new methods in CI/CD stage class

parent 056f1b70
...@@ -19,10 +19,6 @@ module Ci ...@@ -19,10 +19,6 @@ module Ci
name name
end end
def index
statuses.first.stage_idx
end
def statuses_count def statuses_count
@statuses_count ||= statuses.count @statuses_count ||= statuses.count
end end
...@@ -49,14 +45,6 @@ module Ci ...@@ -49,14 +45,6 @@ module Ci
status.to_s == 'success' status.to_s == 'success'
end end
def failed?
status.to_s == 'failed'
end
def canceled?
status.to_s == 'canceled'
end
def has_warnings? def has_warnings?
if @warnings.nil? if @warnings.nil?
statuses.latest.failed_but_allowed.any? statuses.latest.failed_but_allowed.any?
......
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