Sha256: 6f65ca3cb2beb1da50740ead947732909b3b76e05ccc258394d295052882a908

Contents?: true

Size: 526 Bytes

Versions: 81

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

81 entries across 81 versions & 1 rubygems

Version Path
katello-4.5.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.4.0.2 app/lib/actions/pulp3/repository/create.rb
katello-4.4.0.1 app/lib/actions/pulp3/repository/create.rb
katello-4.3.1 app/lib/actions/pulp3/repository/create.rb
katello-4.4.0 app/lib/actions/pulp3/repository/create.rb
katello-4.4.0.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.4.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.2.2 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0.rc4 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0.rc3 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0.rc2.1 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.3.0.rc1 app/lib/actions/pulp3/repository/create.rb
katello-4.2.1 app/lib/actions/pulp3/repository/create.rb
katello-4.2.0.1 app/lib/actions/pulp3/repository/create.rb
katello-4.1.4 app/lib/actions/pulp3/repository/create.rb
katello-4.2.0.1.rc3 app/lib/actions/pulp3/repository/create.rb
katello-4.2.0.1.rc2 app/lib/actions/pulp3/repository/create.rb
katello-4.2.0.rc2 app/lib/actions/pulp3/repository/create.rb