Sha256: 36588cb76ebdde5656c7fce3c7840a8ac5daf9cc307a8715b9ba2f3ede399d00

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

module Katello
  module Concerns
    module RendererExtensions
      extend ActiveSupport::Concern

      included do
        alias_method_chain :kickstart_attributes, :katello
      end

      def kickstart_attributes_with_katello
        kickstart_attributes_without_katello

        if @host.content_facet.try(:content_view) && @host.operatingsystem.is_a?(Redhat) &&
                @host.operatingsystem.kickstart_repos(@host).first.present?
          @mediapath ||= @host.operatingsystem.mediumpath(@host)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
katello-3.0.0.rc5 app/lib/katello/concerns/renderer_extensions.rb