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.4.2.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.5.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.6.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.6.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.6.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.5.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.5.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.5.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.0.2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.0.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.3.1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.0.rc2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.4.0.rc1 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.2.2 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.3.0 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.3.0.rc4 app/lib/actions/pulp3/orchestration/repository/delete.rb
katello-4.3.0.rc3 app/lib/actions/pulp3/orchestration/repository/delete.rb