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