Sha256: 6e9d8e8c5aacc81499a6bd599ff19044f62208700f8d749b861e4a0a58f94032
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
object @capsule attribute :last_sync_time node :unsyncable_content_types do ::Katello::SmartProxyHelper.new(@capsule).unsyncable_content_types end child :active_sync_tasks => :active_sync_tasks do extends 'foreman_tasks/api/tasks/show' end child :last_failed_sync_tasks => :last_failed_sync_tasks do extends 'foreman_tasks/api/tasks/show' end child @lifecycle_environments => :lifecycle_environments do extends 'katello/api/v2/common/identifier' extends 'katello/api/v2/common/org_reference' attributes :library node :syncable do |env| @capsule.environment_syncable?(env) end if @capsule.has_feature?(SmartProxy::PULP_NODE_FEATURE) || @capsule.has_feature?(SmartProxy::PULP3_FEATURE) node :counts do |env| { :content_views => env.content_views.non_default.count } end node :content_views do |env| env.content_views.map do |content_view| attributes = { :id => content_view.id, :label => content_view.label, :name => content_view.name, :composite => content_view.composite, :last_published => content_view.versions.empty? ? nil : content_view.versions.last.created_at, :default => content_view.default, :up_to_date => @capsule.repos_pending_sync(env, content_view).empty?, :counts => { :repositories => ::Katello::ContentViewVersion.in_environment(env).find_by(:content_view => content_view)&.archived_repos&.count } } attributes end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
katello-4.3.0.rc2.1 | app/views/katello/api/v2/capsule_content/sync_status.json.rabl |
katello-4.3.0.rc2 | app/views/katello/api/v2/capsule_content/sync_status.json.rabl |