Sha256: 401277307edfc18d41fd92b335457787d21b00a85ec0958c06a0df6f8f84356a

Contents?: true

Size: 565 Bytes

Versions: 38

Compression:

Stored size: 565 Bytes

Contents

module Katello
  class PurposeSlaStatus < HostStatus::Status
    UNKNOWN = Katello::PurposeStatus::UNKNOWN
    def self.status_name
      N_('Service level')
    end

    def self.humanized_name
      'purpose_sla'
    end

    def to_label(_options = {})
      Katello::PurposeStatus.to_label(status)
    end

    def to_status(options = {})
      Katello::PurposeStatus.to_status(self, :sla_status, options)
    end

    def relevant?(_options = {})
      host.subscription_facet.try(:uuid)
    end

    def substatus?(_options = {})
      true
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
katello-4.11.1 app/models/katello/purpose_sla_status.rb
katello-4.11.0 app/models/katello/purpose_sla_status.rb
katello-4.11.0.rc2 app/models/katello/purpose_sla_status.rb
katello-4.11.0.rc1 app/models/katello/purpose_sla_status.rb
katello-4.10.0 app/models/katello/purpose_sla_status.rb
katello-4.9.2 app/models/katello/purpose_sla_status.rb
katello-4.10.0.rc2 app/models/katello/purpose_sla_status.rb
katello-4.10.0.rc1 app/models/katello/purpose_sla_status.rb
katello-4.8.4 app/models/katello/purpose_sla_status.rb
katello-4.9.1 app/models/katello/purpose_sla_status.rb
katello-4.8.3 app/models/katello/purpose_sla_status.rb
katello-4.9.0 app/models/katello/purpose_sla_status.rb
katello-4.7.6 app/models/katello/purpose_sla_status.rb
katello-4.8.2 app/models/katello/purpose_sla_status.rb
katello-4.9.0.rc2 app/models/katello/purpose_sla_status.rb
katello-4.9.0.rc1 app/models/katello/purpose_sla_status.rb
katello-4.8.1 app/models/katello/purpose_sla_status.rb
katello-4.7.5 app/models/katello/purpose_sla_status.rb
katello-4.8.0 app/models/katello/purpose_sla_status.rb
katello-4.8.0.rc2 app/models/katello/purpose_sla_status.rb