I see in the reference manual that there are two ways to invoke a module.

11.87 Function usemodule
   Modules must reside in WORKDIR/modules
   but no longer require a special naming
   convention.

7.1.3 module attribute of commands type promise (set to true)


I guess function is there to give more flexibility, to be able to
invoke a module inside a vars type promise, for example.


I am trying to understand when you would use the commands promise and
when the function.

I suppose I could use the commands promise normally, unless I need the
added flexibility, in which case I would use the function.


Am I missing anything?

Aleksey
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to