Ruby codes in puppet-openstack repos are used for the following three purposes.
 1. unit tests and acceptance tests using serverspec framework (files placed under spec)
 2. implementation of custom type, provider, and function
 3. template files (We use ERB instead of pure Ruby about this, though)

1 is supposed to be used only for testing during deployment but 2 and 3 can be used
in any production use case in combination with puppet manifest files to manage
OpenStack deployments.


On Sat, Feb 27, 2021 at 5:01 AM Bessghaier, Narjes <narjes.bessghaier.1@ens.etsmtl.ca> wrote:

Dear OpenStack team,

My name is Narjes and I'm a PhD student at the University of Montréal, Canada. 

 My current work consists of analyzing code reviews on the puppet modules. I would like to precisely know what the ruby files are used for in the puppet modules. As mentioned in the official website, most of unit test are written in ruby. Are ruby files destined to carry out units tests or destined for production code.

I appreciate your help,
Thank you