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



82
83
84
85
86
87
88
89
90
# File 'lib/hammer_cli_katello/content_view.rb', line 82

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

  data
end