Class: Katello::PurposeAddonsStatus

Inherits:
HostStatus::Status
  • Object
show all
Defined in:
app/models/katello/purpose_addons_status.rb

Constant Summary collapse

UNKNOWN =
Katello::PurposeStatus::UNKNOWN

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.humanized_nameObject



8
9
10
# File 'app/models/katello/purpose_addons_status.rb', line 8

def self.humanized_name
  'purpose_addons'
end

.status_nameObject



4
5
6
# File 'app/models/katello/purpose_addons_status.rb', line 4

def self.status_name
  N_('Addons')
end

Instance Method Details

#relevant?(_options = {}) ⇒ Boolean



20
21
22
# File 'app/models/katello/purpose_addons_status.rb', line 20

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

#substatus?(_options = {}) ⇒ Boolean



24
25
26
# File 'app/models/katello/purpose_addons_status.rb', line 24

def substatus?(_options = {})
  true
end

#to_label(_options = {}) ⇒ Object



12
13
14
# File 'app/models/katello/purpose_addons_status.rb', line 12

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

#to_status(options = {}) ⇒ Object



16
17
18
# File 'app/models/katello/purpose_addons_status.rb', line 16

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