Project

Profile

Help

Story #894

closed

Consolidate upload functionality of CLI and bindings

Added by bmbouter over 9 years ago. Updated over 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

This represents a consolidation of the CLI to ease the burden on plugin writers. This is independent of the API changes and CLI updates described in #892 and #923.

The Plan

The main area of work is getting plugins out of the business of needing to implement anything specific for uploads. The CLI code in platform will provide a single command for "upload" that is not provided by plugins. It will take the same options as the /import_upload API allows.

Plugins will have a way to manifest the content names and optional parameters the user is required to specify, along with help text for each of the to be used by the CLI. Plugin writers are not expected to provide any code for this, just manifests which will be used by platform. Each plugin will document the content types it supports will document the way to use those fields specific to that content type.

Benefits

  • Uploading becomes a single command
  • All plugins will not have to do anything to support upload outside of the normal interfaces they need to make anyway, and specifying the content type upload manifest.
  • The CLI will become more consistent and the code will be de-duplicated as its moved to platform. This will resolve problems that we have currently such as the upload commands for puppet and rpm are very different from each other for no good reason.

Related issues

Blocked by Pulp - Story #892: Redesign of Uploads APICLOSED - WONTFIX

Actions

Also available in: Atom PDF