Sha256: 6f65ca3cb2beb1da50740ead947732909b3b76e05ccc258394d295052882a908

Contents?: true

Size: 526 Bytes

Versions: 80

Compression:

Stored size: 526 Bytes

Contents

module Actions
  module Pulp3
    module Repository
      class Create < Pulp3::Abstract
        def plan(repository, smart_proxy, force = false)
          plan_self(:repository_id => repository.id, :smart_proxy_id => smart_proxy.id, :force => force)
        end

        def run
          repo = ::Katello::Repository.find(input[:repository_id])
          force = input[:force] || false
          output[:response] = repo.backend_service(smart_proxy).with_mirror_adapter.create(force)
        end
      end
    end
  end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/pulp3/repository/create.rb
katello-4.15.0 app/lib/actions/pulp3/repository/create.rb
katello-4.15.0.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.15.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.14.1 app/lib/actions/pulp3/repository/create.rb
katello-4.14.0 app/lib/actions/pulp3/repository/create.rb
katello-4.14.0.rc3 app/lib/actions/pulp3/repository/create.rb
katello-4.14.0.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.14.0.rc1.1 app/lib/actions/pulp3/repository/create.rb
katello-4.14.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.13.1 app/lib/actions/pulp3/repository/create.rb
katello-4.13.0 app/lib/actions/pulp3/repository/create.rb
katello-4.12.1 app/lib/actions/pulp3/repository/create.rb
katello-4.13.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.12.0 app/lib/actions/pulp3/repository/create.rb
katello-4.12.0.rc3 app/lib/actions/pulp3/repository/create.rb
katello-4.12.0.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.12.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.11.1 app/lib/actions/pulp3/repository/create.rb
katello-4.11.0 app/lib/actions/pulp3/repository/create.rb