Sha256: 1255edfd5e97f3a98d8a58734038a164fa7561db1aaf52dd1746773bf3f5c47d

Contents?: true

Size: 789 Bytes

Versions: 77

Compression:

Stored size: 789 Bytes

Contents

module Actions
  module Katello
    module ContentViewPuppetEnvironment
      class CreateForVersion < Actions::Base
        # allows accessing the build object from the superior action
        attr_accessor :new_puppet_environment

        def plan(content_view_version)
          content_view = content_view_version.content_view
          modules_by_repoid = content_view.computed_module_ids_by_repoid

          self.new_puppet_environment = content_view.build_puppet_env(:version => content_view_version)

          sequence do
            plan_action(ContentViewPuppetEnvironment::Create, new_puppet_environment, true)
            plan_action(ContentViewPuppetEnvironment::CloneContent, new_puppet_environment, modules_by_repoid)
          end
        end
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
katello-3.10.2 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.10.1.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.10.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.10.0 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.10.0.rc1.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.9.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.10.0.rc1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.9.0 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.8.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.9.0.rc2 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.9.0.rc1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.7.1.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.7.1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.8.0 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.8.0.rc3 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.8.0.rc2 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.7.0 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.8.0.rc1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.7.0.rc2 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb
katello-3.7.0.rc1 app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb