Table of Contents
- A generic method should be named as this:
- The first part is the name of the item being defined or configured (a package, a file, a condition, etc.), the second part qualifies what is being done
-
item_statewhenever a state name makes sense (likepackage_present) -
item_subitemwhen we are configuring a subitem (likeuser_home) -
item_subitem_statewhenever a state name makes sense for a subitem (likefile_lines_present) -
item_from_sourcewhenever it is converted from something else, replacing source by the type of the source (command,file, etc.) -
item_actionif it is an action (likeservice_restart) - Avoid useless words, and keep things short
- When adding a more specific method, add a qualifier at the end
