Sha256: 60d9f911fa560735a3035580fb0a81033b6c9467447bd424c82c6e3b42c9229e

Contents?: true

Size: 784 Bytes

Versions: 14

Compression:

Stored size: 784 Bytes

Contents

object @resource

@resource ||= @object
@facet = @resource.content_facet

attributes :id, :name, :description

node :operatingsystem_family do |resource|
  resource.operatingsystem&.family
end

node :operatingsystem_major do |resource|
  resource.operatingsystem&.major
end

if @facet
  node :content_view do
    content_view = @facet&.single_content_view
    if content_view.present?
      {
        :id => content_view.id,
        :name => content_view.name,
        :composite => content_view.composite?
      }
    end
  end
  node :lifecycle_environment do
    lifecycle_environment = @facet&.single_lifecycle_environment
    if lifecycle_environment.present?
      {
        :id => lifecycle_environment.id,
        :name => lifecycle_environment.name
      }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-4.14.2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.0.rc3 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.0.rc1.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.14.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.13.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.13.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.12.1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.13.0.rc1 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.12.0 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.12.0.rc3 app/views/katello/api/v2/hosts/base.json.rabl
katello-4.12.0.rc2 app/views/katello/api/v2/hosts/base.json.rabl