Commit 119757ac authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add scaffold for remaining statuses-related classes

parent 943b3d0e
module Gitlab::Ci
module Status
module Extended
module Base
def matches?(_subject)
raise NotImplementedError
end
end
end
end
end
module Gitlab::Ci
module Status
module Extended
module Pipeline
module Common
def initialize(pipeline)
@pipeline = pipeline
end
def has_details?
true
end
def details_path
end
def has_action?
false
end
end
end
end
end
end
module Gitlab::Ci
module Status
module Extended
module Pipeline
class SuccessWithWarnings < SimpleDelegator
extend Status::Extended::Base
def label
'passed with warnings'
end
def icon
'icon_status_warning'
end
def self.matches?(pipeline)
pipeline.success? && pipeline.has_warnings?
end
end
end
end
end
end
module Gitlab::Ci
module Status
class Factory
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