Sha256: 30f7dc3170099cbfeb9f32796cad00b0c7778697e38791b33b166973914e091b

Contents?: true

Size: 517 Bytes

Versions: 45

Compression:

Stored size: 517 Bytes

Contents

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

45 entries across 45 versions & 1 rubygems

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