Class: ForemanOmaha::OmahaFacet
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ForemanOmaha::OmahaFacet
- Includes:
- Facets::Base
- Defined in:
- app/models/foreman_omaha/omaha_facet.rb
Constant Summary collapse
- VALID_OMAHA_STATUSES =
[:unknown, :complete, :downloading, :downloaded, :installed, :instance_hold, :error].freeze
Instance Method Summary collapse
Instance Method Details
#major ⇒ Object
26 27 28 29 30 |
# File 'app/models/foreman_omaha/omaha_facet.rb', line 26 def major return unless version version.split('.').first end |
#minor ⇒ Object
32 33 34 35 36 |
# File 'app/models/foreman_omaha/omaha_facet.rb', line 32 def minor return unless version version.split('.').last(2).join('.') end |
#to_status_label ⇒ Object
22 23 24 |
# File 'app/models/foreman_omaha/omaha_facet.rb', line 22 def to_status_label status_mapper.to_label end |