Skip to content

RHInception/re-worker-func

 
 

Repository files navigation

re-worker-func

Func Worker for Release Engine for our new release engine hotness

Build Status

Unittests

Run make tests from the main directory to execute unittests (including pep8 and pyflakes)

Configuration

The configuration file uses the following pattern in JSON format:

{
    "FUNC_MODULE": {
        "COMMAND_1": ["REQUIRED", "PARAMETERS"],
        "COMMAND_2": ["ONE_ITEM"],
        "COMMAND_N": []
    }

Example:

{
    "yumcmd": {
        "install": ["package"],
        "remove": ["package"],
        "update": []
    }
}

Note: See Func - Module List for more information.

Use as an Engine Step

{
    "project": "example project",
    "ownership": {
        "id": "Some team",
        "contact": "[email protected]"
    },
    "steps": [
        {
            "name": "stop foo service",
            "plugin": "funcworker",
            "parameters": {
                "command": "service",
                "subcommand": "stop",
                "service": "megafrobber"
            }
        },
        {
            "name": "foo",
            "plugin": "funcworker",
            "parameters": {
                "command": "yumcmd",
                "subcommand": "install",
                "package": "xemacs",
            }
        }
    ]
}

About

Shell Command Execution Worker for Release Engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •