Sha256: 46352528fbe98ef01d42ed7eeea22310c570ac868f5728206a7ea8daa38ed198

Contents?: true

Size: 994 Bytes

Versions: 7

Compression:

Stored size: 994 Bytes

Contents

module Actions
  module Pulp3
    module Orchestration
      module Repository
        class Sync < Pulp3::Abstract
          include Actions::Helpers::OutputPropagator
          def plan(repository, smart_proxy, options)
            sequence do
              plan_action(Actions::Pulp3::Repository::RefreshRemote, repository, smart_proxy)
              action_output = plan_action(Actions::Pulp3::Repository::Sync, repository, smart_proxy, options).output

              force_fetch_version = true if options[:optimize] == false
              version_output = plan_action(Pulp3::Repository::SaveVersion, repository, tasks: action_output[:pulp_tasks], :force_fetch_version => force_fetch_version).output
              plan_action(Pulp3::Orchestration::Repository::GenerateMetadata, repository, smart_proxy, :contents_changed => version_output[:contents_changed])
              plan_self(:subaction_output => version_output)
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-4.1.1 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0.rc2.2 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0.rc2.1 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0.rc2 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0.rc1.1 app/lib/actions/pulp3/orchestration/repository/sync.rb
katello-4.1.0.rc1 app/lib/actions/pulp3/orchestration/repository/sync.rb