Sha256: ece8e681fcfac53c217cc4ad4e85c2a21e8988d111fc2608a11fd7c0de405860

Contents?: true

Size: 559 Bytes

Versions: 103

Compression:

Stored size: 559 Bytes

Contents

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

    def self.humanized_name
      'purpose_role'
    end

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

    def to_status(options = {})
      Katello::PurposeStatus.to_status(self, :role_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-3.18.5 app/models/katello/purpose_role_status.rb
katello-4.2.0.1.rc2 app/models/katello/purpose_role_status.rb
katello-4.2.0.rc2 app/models/katello/purpose_role_status.rb
katello-4.1.3 app/models/katello/purpose_role_status.rb
katello-4.2.0.rc1 app/models/katello/purpose_role_status.rb
katello-4.0.2.1 app/models/katello/purpose_role_status.rb
katello-4.1.2.1 app/models/katello/purpose_role_status.rb
katello-4.0.2 app/models/katello/purpose_role_status.rb
katello-4.1.2 app/models/katello/purpose_role_status.rb
katello-3.18.4 app/models/katello/purpose_role_status.rb
katello-4.1.1 app/models/katello/purpose_role_status.rb
katello-4.1.0 app/models/katello/purpose_role_status.rb
katello-4.0.1.2 app/models/katello/purpose_role_status.rb
katello-3.18.3.1 app/models/katello/purpose_role_status.rb
katello-4.1.0.rc2.2 app/models/katello/purpose_role_status.rb
katello-4.1.0.rc2.1 app/models/katello/purpose_role_status.rb
katello-4.0.1.1 app/models/katello/purpose_role_status.rb
katello-3.18.3 app/models/katello/purpose_role_status.rb
katello-4.1.0.rc2 app/models/katello/purpose_role_status.rb
katello-4.0.1 app/models/katello/purpose_role_status.rb