Sha256: b39a21756b833ca7f2d48d1989ed6bb872b1024ecd812d9143967dec0ffc630f

Contents?: true

Size: 519 Bytes

Versions: 45

Compression:

Stored size: 519 Bytes

Contents

module Katello
  class PurposeSlaStatus < HostStatus::Status
    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

45 entries across 45 versions & 1 rubygems

Version Path
katello-3.16.2 app/models/katello/purpose_sla_status.rb
katello-3.16.1.2 app/models/katello/purpose_sla_status.rb
katello-3.16.1.1 app/models/katello/purpose_sla_status.rb
katello-3.16.1 app/models/katello/purpose_sla_status.rb
katello-3.16.0 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc5.1 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc5 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc4.1 app/models/katello/purpose_sla_status.rb
katello-3.15.3.1 app/models/katello/purpose_sla_status.rb
katello-3.15.3 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc4 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc3.1 app/models/katello/purpose_sla_status.rb
katello-3.15.2 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc3 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc2.1 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc2 app/models/katello/purpose_sla_status.rb
katello-3.15.1.1 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc1.1 app/models/katello/purpose_sla_status.rb
katello-3.15.1 app/models/katello/purpose_sla_status.rb
katello-3.16.0.rc1 app/models/katello/purpose_sla_status.rb