Sha256: 599a42a04d038eba5117c4acdb300b8cb53796124d9981f7f32a7088d3e6a8d3
Contents?: true
Size: 1006 Bytes
Versions: 9
Compression:
Stored size: 1006 Bytes
Contents
module Actions module Katello module ContentView class NodeMetadataGenerate < Actions::EntryAction def resource_locks :link end def humanized_name _("Generate and Synchronize Capsule Metadata for %s") % input[:environment_name] end def plan(content_view, environment) action_subject(content_view) concurrence do ::Katello::Repository.in_content_views([content_view]).in_environment(environment).each do |repo| plan_action(Katello::Repository::NodeMetadataGenerate, repo) end cv_puppet_env = ::Katello::ContentViewPuppetEnvironment.in_environment(environment). in_content_view(content_view).first plan_action(Katello::Repository::NodeMetadataGenerate, cv_puppet_env) if cv_puppet_env && cv_puppet_env.puppet_environment end plan_self(:environment_name => environment.name) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems