Sha256: 4644c64f84cccd572cf2f08a8b4831626c522091d4354b2adf3876174bbbca2a

Contents?: true

Size: 773 Bytes

Versions: 246

Compression:

Stored size: 773 Bytes

Contents

module Katello
  class RepositoryPresenter
    attr_accessor :repository

    def initialize(repository)
      @repository = repository
    end

    def content_view_environments
      unarchived = @repository.clones.select { |clone| clone.environment && clone.content_view_version }

      unarchived.collect do |repository|
        if repository.environment && repository.content_view_version
          {
            :content_view_version => {
              :id => repository.content_view_version.id,
              :name => repository.content_view_version.name
            },
            :environment => {
              :id => repository.environment.id,
              :name => repository.environment.name
            }
          }
        end
      end
    end
  end
end

Version data entries

246 entries across 246 versions & 1 rubygems

Version Path
katello-4.14.3 app/presenters/katello/repository_presenter.rb
katello-4.14.2 app/presenters/katello/repository_presenter.rb
katello-4.14.1 app/presenters/katello/repository_presenter.rb
katello-4.14.0 app/presenters/katello/repository_presenter.rb
katello-4.14.0.rc3 app/presenters/katello/repository_presenter.rb
katello-4.14.0.rc2 app/presenters/katello/repository_presenter.rb
katello-4.14.0.rc1.1 app/presenters/katello/repository_presenter.rb
katello-4.14.0.rc1 app/presenters/katello/repository_presenter.rb
katello-4.13.1 app/presenters/katello/repository_presenter.rb
katello-4.13.0 app/presenters/katello/repository_presenter.rb
katello-4.12.1 app/presenters/katello/repository_presenter.rb
katello-4.13.0.rc1 app/presenters/katello/repository_presenter.rb
katello-4.12.0 app/presenters/katello/repository_presenter.rb
katello-4.12.0.rc3 app/presenters/katello/repository_presenter.rb
katello-4.12.0.rc2 app/presenters/katello/repository_presenter.rb
katello-4.12.0.rc1 app/presenters/katello/repository_presenter.rb
katello-4.11.1 app/presenters/katello/repository_presenter.rb
katello-4.11.0 app/presenters/katello/repository_presenter.rb
katello-4.11.0.rc2 app/presenters/katello/repository_presenter.rb
katello-4.11.0.rc1 app/presenters/katello/repository_presenter.rb