microsoft / PSRule

Validate infrastructure as code (IaC) and objects using PowerShell rules.
https://microsoft.github.io/PSRule/v2/
MIT License
376 stars 49 forks source link

[Question] How to versioning the rules today? #215

Closed LaurentDardenne closed 5 years ago

LaurentDardenne commented 5 years ago

For a module, manage them with Import-Module and -Requiredversion?

For a script, add information via PSGet or add a version number to the directory name of the rule?

BernieWhite commented 5 years ago

@LaurentDardenne Modules are the intended packaging process to distribute rules.

Modules already load the newest based on version number by default with Import-Module <moduleName>. Since PSRule currently uses only imported modules it complements this management scheme.

Can you think of a good reason to support single file distributions of rules?

BernieWhite commented 5 years ago

@LaurentDardenne I hope I answered your question :).

It is probably a good one for an FAQ.

LaurentDardenne commented 5 years ago

Can you think of a good reason to support single file distributions of rules?

No, I'm looking at how PSRule works, what it offers, and how to best implement it.

I hope I answered your question :).

Absolutely.Thank you.