Sha256: 6e231413283c9dcab4630efffe23a66f13e1d98298398a47816597203611655e

Contents?: true

Size: 563 Bytes

Versions: 103

Compression:

Stored size: 563 Bytes

Contents

module Katello
  class PurposeUsageStatus < HostStatus::Status
    UNKNOWN = Katello::PurposeStatus::UNKNOWN
    def self.status_name
      N_('Usage')
    end

    def self.humanized_name
      'purpose_usage'
    end

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

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

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

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

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
katello-4.4.1 app/models/katello/purpose_usage_status.rb
katello-4.5.0.rc1 app/models/katello/purpose_usage_status.rb
katello-4.4.0.2 app/models/katello/purpose_usage_status.rb
katello-4.4.0.1 app/models/katello/purpose_usage_status.rb
katello-4.3.1 app/models/katello/purpose_usage_status.rb
katello-4.4.0 app/models/katello/purpose_usage_status.rb
katello-4.4.0.rc2 app/models/katello/purpose_usage_status.rb
katello-4.4.0.rc1 app/models/katello/purpose_usage_status.rb
katello-4.2.2 app/models/katello/purpose_usage_status.rb
katello-4.3.0 app/models/katello/purpose_usage_status.rb
katello-4.3.0.rc4 app/models/katello/purpose_usage_status.rb
katello-4.3.0.rc3 app/models/katello/purpose_usage_status.rb
katello-4.3.0.rc2.1 app/models/katello/purpose_usage_status.rb
katello-4.3.0.rc2 app/models/katello/purpose_usage_status.rb
katello-4.3.0.rc1 app/models/katello/purpose_usage_status.rb
katello-4.2.1 app/models/katello/purpose_usage_status.rb
katello-4.2.0.1 app/models/katello/purpose_usage_status.rb
katello-4.1.4 app/models/katello/purpose_usage_status.rb
katello-4.0.3 app/models/katello/purpose_usage_status.rb
katello-4.2.0.1.rc3 app/models/katello/purpose_usage_status.rb