Sha256: 50dba59cbe8c52908fa021b12542e147c8297e4ef1e80ca0203b195d3675b197

Contents?: true

Size: 953 Bytes

Versions: 134

Compression:

Stored size: 953 Bytes

Contents

module Actions
  module Pulp3
    module Orchestration
      module Repository
        class Delete < Pulp3::Abstract
          def plan(repository, smart_proxy)
            sequence do
              plan_action(Actions::Pulp3::Repository::DeleteRemote, repository.id, smart_proxy) if repository.remote_href
              plan_action(Actions::Pulp3::Repository::DeleteDistributions, repository.id, smart_proxy)

              if repository.content_view.default?
                #we're deleting the library instance, so just delete the whole pulp3 repo
                plan_action(Actions::Pulp3::Repository::Delete, repository.id, smart_proxy)
              elsif repository.environment.nil?
                #we're deleting the archived instance, so delete the version
                plan_action(Actions::Pulp3::Repository::DeleteVersion, repository, smart_proxy)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

134 entries across 134 versions & 1 rubygems

Version Path
katello-4.13.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.13.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.12.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.12.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.11.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.11.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.11.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.11.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.10.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.9.2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.10.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.10.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.8.4 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.9.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.8.3 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.9.0 app/lib/actions/pulp3/orchestration/repository/delete.rb