Skip to content

dkliban/pulp-openapi-generator

 
 

Repository files navigation

pulp-swagger-codegen

This repository provides a script that helps generate Python and Ruby bindings for pulpcore or any of it's plugins.

The first time the script is run, a docker container with swagger-codegen-cli is downloaded. All subsequent runs will re-use the container that was downloaded on the initial run.

Requirements

  • Pulp 3 running on localhost:24817
  • Docker

Generating bindings

The generate.sh script takes three positional arguments: module name, version, language. The following commands should be used to generate Python bindings for pulpcore:

sudo ./generate.sh pulpcore 3.0.0rc1 python

This command will generate a python package inside pulpcore-client directory.

Ruby bindings for the RPM plugin can be generated with the following command:

sudo ./generate.sh pulp_rpm 3.0.0rc1 ruby

This command will generate a Ruby Gem inside pulp_rpm-client directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.5%
  • Shell 47.5%