Sha256: a5ffd8482823ba525a352af4aeec4c5b9c426dc0e4c32828cb063c18e25246a7

Contents?: true

Size: 685 Bytes

Versions: 40

Compression:

Stored size: 685 Bytes

Contents

module Actions
  module Pulp3
    module Orchestration
      module Repository
        class Create < Pulp3::Abstract
          def plan(repository, smart_proxy)
            sequence do
              create_action = plan_action(Actions::Pulp3::Repository::Create, repository, smart_proxy)
              plan_action(Actions::Pulp3::Repository::SaveVersion, repository, repository_details: create_action.output[:response])

              if repository.content_view.default? || !smart_proxy.pulp_primary?
                plan_action(Actions::Pulp3::Repository::CreateRemote, repository, smart_proxy)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
katello-4.0.3 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-3.18.5 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.2.0.rc1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.0.2.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.2.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.0.2 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.2 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-3.18.4 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.0.1.2 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-3.18.3.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0.rc2.2 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0.rc2.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.0.1.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-3.18.3 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0.rc2 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.0.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0.rc1.1 app/lib/actions/pulp3/orchestration/repository/create.rb
katello-4.1.0.rc1 app/lib/actions/pulp3/orchestration/repository/create.rb