Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cfbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@
"subdirectory": "libraries/python",
"steps": [
"copy cfengine_module_library.py modules/promises/cfengine_module_library.py",
"copy cfengine_module_library.py modules/promises/cfengine.py"
"replace_version 2 0.0.0 modules/promises/cfengine_module_library.py",
"copy cfengine_module_library.py modules/promises/cfengine.py",
"replace_version 2 0.0.0 modules/promises/cfengine.py"
]
},
"maintainers-in-motd": {
Expand Down
11 changes: 10 additions & 1 deletion libraries/python/cfengine_module_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
Currently, this is for implementing custom promise types,
but it might be expanded to other types of modules in the future,
for example custom functions.

This library is available as a module in CFEngine Build:

https://build.cfengine.com/modules/library-for-promise-types-in-python/

CFEngine Build version: 0.0.0

(If the version number is all zeroes, you are looking at the source. It will
be replaced in a build step when you run cfbs build).
"""

import sys
Expand Down Expand Up @@ -119,7 +128,7 @@ class Result:

class PromiseModule:
def __init__(
self, name="default_module_name", version="0.0.1", record_file_path=None
self, name="default_module_name", version="0.0.0", record_file_path=None
):
self.name = name
self.version = version
Expand Down