Git Product home page Git Product logo

vmware_rest_code_generator's Introduction

vmware_rest code generator

We use this repository to generate the vmware.vmware_rest collection.

Requirements

You need the following components on your system:

  • Python 3.6
  • tox

Usage

To build the modules: tox -e refresh_modules.

The modules will be generated in vmware_rest subdirectory by default. If you want to target a specific directory:

  • tox -e refresh_modules --target-dir /somewhere/else

You can also generate the EXAMPLES section of the modules with the following command:

  • tox -e refresh_examples --target-dir /somewhere/else

It will use the content of the tests/ directory to generate the examples.

How to refresh the vmware.vmware_rest content

Install the original vmware.vmware_rest collection from git:

mkdir -p ~/.ansible/collections/ansible_collections/vmware/vmware_rest
git clone https://github.com/ansible-collections/vmware.vmware_rest ~/.ansible/collections/ansible_collections/vmware/vmware_rest

Refresh the content of the modules using this repository:

cd ~/.ansible/collections/ansible_collections/vmware/vmware_rest
tox -e refresh_modules

Refresh the RETURN of the modules using the test-suite:

mkdir -p ~/.ansible/collections/ansible_collections/goneri/utils
git clone https://github.com/goneri/ansible-collection-goneri.utils.git ~/.ansible/collections/ansible_collections/goneri/utils
cd ~/.ansible/collections/ansible_collections/vmware/vmware_rest/tests/integration/targets/vcenter_vm_scenario1
./refresh_RETURN_block.sh
cd ~/.ansible/collections/ansible_collections/goneri/utils
./scripts/inject_RETURN.py ~/.ansible/collections/ansible_collections/vmware/vmware_rest/manual/source/vmware_rest_scenarios/task_outputs ~/.ansible/collections/ansible_collections/vmware/vmware_rest --config-file config/inject_RETURN.yaml

Reformat the Python code of the modules using the black formatter:

cd ~/.ansible/collections/ansible_collections/vmware/vmware_rest
tox -e black

Refresh the content of the documentation.

tox -e add_docs

Run ansible-test to validate the result:

virtualenv -p python3.6 ~/tmp/venv-tmp-py36-vmware
source ~/tmp/venv-tmp-py36-vmware/bin/activate
pip install -r requirements.txt -r test-requirements.txt ansible
ansible-test sanity --requirements --local --python 3.6 -vvv

Code of Conduct

This project is governed by the Ansible Community code of conduct

vmware_rest_code_generator's People

Contributors

goneri avatar ansible-zuul[bot] avatar abikouo avatar akasurde avatar softwarefactory-project-zuul[bot] avatar alinabuzachis avatar jgroom33 avatar jillr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.