Class: HammerCLIKatello::ContentView::InfoCommand

Inherits:
InfoCommand
  • Object
show all
Includes:
OrganizationOptions
Defined in:
lib/hammer_cli_katello/content_view.rb

Instance Method Summary collapse

Methods included from OrganizationOptions

included, #org_options

Methods included from ResolverCommons

included

Instance Method Details

#extend_data(data) ⇒ Object



113
114
115
116
117
118
119
120
121
# File 'lib/hammer_cli_katello/content_view.rb', line 113

def extend_data(data)
  %w(yum docker ostree file deb ansible_collection python).each do |content_type|
    data["_#{content_type}_repositories"] = data["repositories"].select do |repo|
      repo["content_type"] == content_type
    end
  end

  data
end