debian-forge/assemblers/org.osbuild.noop
Christian Kellner 8ccc73d1c3 pipeline assemblers are stages now
Instead of using the `Assemblers` class to represent assemblers,
use the `Stage` class: The `Pipeline.add_assembler` method will
now instantiate and `Stage` instead of an `Assembler`. The tree
that the pipeline built is converted to an Input (while loading
the manifest description in `format/v1.py`) and all existing
assemblers are converted to use that input as the tree input.

The assembler run test is removed as the Assembler class itself
is not used (i.e. run) anymore.
2021-01-18 17:44:46 +01:00

30 lines
566 B
Python
Executable file

#!/usr/bin/python3
"""
No-op assembler
No-op assembler. Produces no output, just prints a JSON dump of its options
and then exits.
"""
import json
import sys
import osbuild.api
SCHEMA = """
"additionalProperties": false
"""
def main(_tree, _output_dir, options):
print("Not doing anything with these options:", json.dumps(options))
if __name__ == '__main__':
args = osbuild.api.arguments()
args_input = args["inputs"]["tree"]["path"]
args_output = args["tree"]
r = main(args_input, args_output, args.get("options", {}))
sys.exit(r)