Automatically migrate loose files into gdk.yml
This is part of #658.
Implementation detail
I think it would be easiest to subclass GDK::Config
and override #read!
method do something different.
We probably can make gdk doctor
detect if there are loose files, and if so it can suggest the user to run gdk config migrate
(or whatever TBD?).
Concerns
Although I'm a bit hesitant. I know for example gitlab-omnibus never writes to /etc/gitlab/gitlab.rb
, they treat that file as holy and only the sysadmin will write it. This is in place to make sure an ochestrator (like Ansible) will never overwrite change gitlab-omnibus made, and not having any notice of it. So maybe as a first step we should only write to gdk.yml
if the file does not exist yet.