kine / NVRAppDevOps

Navertica DevOps scripts for managing Microsoft Dynamics 365 Business Central Apps
31 stars 29 forks source link

Dynamic readout of the settings #30

Closed FSharpCSharp closed 4 years ago

FSharpCSharp commented 4 years ago

So far the path to the settings file/script is hardcoded in the PowerShell function. Wouldn't it be much better to parameterize this path as well or to configure it somewhere? So it would be much easier to use it for other DevOps scenarios without adjustments.

https://github.com/kine/NVRAppDevOps/blob/18d4b74b4e6a295ed11efd0e51d24a33b24fd1de/Read-ALConfiguration.ps1#L17-L21

kine commented 4 years ago

Yup, could be, but because long time ago I migrated from ps1 script for settings to json with the settings (place of the json is searched dynamically or could be set through parameters - see https://dynamicsuser.net/nav/b/kine/posts/navertical-transition-from-settings-ps1-to-json ) I recommend to use this way to store the settings.