Revert adding new methods in CI/CD stage class

This commit is contained in:
Grzegorz Bizon 2017-02-14 13:31:59 +01:00
parent 056f1b7020
commit d4522de2fd

View file

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