Modules
Modules in Glue are self-contained units of functionality that can be independently developed and integrated into the Glue framework.
In practice they look like making a Lua function call, such as a Copy(...)
call to copy files over, but under the hood they actually
get composed into a Blueprint which can be viewed, serialized and shared with or without being executed.
Modules are always capitalized (e.g. Blockinfile
)
Helper functions
Helper functions look similar to modules in the sense that they are also Lua functions. The key difference is that helper functions get executed immediatly during the Blueprint creation, and are not part of the generated blueprints.
Some common use cases involve reading from files, string manipulation or http requests.
Helpers are always lowercased (e.g. read
)