You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Ubic in C++ tests, so I cannot run ubic services just using Ubic.pm.
Typical workflow is:
Run ubic-admin setup to make all needed directories in a temp directory.
Put service files into tmp/ubic/service/
Run Ubic providing ENV vars.
...
Stop Ubic using the same ENV vars.
So far everything is OK. But on the first step I cannot avoid reconfiguration of local ubic.cfg.
I'd like to have an option like --user-config and --no-user-config (similar to --crontab) to be able to turn off reconfiguration of ubic.cfg.
I don't send a patch as I don't know whether anything should be prompted for this option or not.
Another idea that I have is that instead of UBIC_DIR, UBIC_SERVICE_DIR, etc. you could have smth. like UBIC_CONFIG_FILE and all the other options would be placed in that file.
The text was updated successfully, but these errors were encountered:
This looks sane to me. I believe you won't have to prompt for anything (except for the config file name), since --batch-mode is already a thing. UBIC_CONFIG_FILE is a good idea too.
I don't want to implement this myself, because even though the patch would be easy, I'm too lazy to write the proper tests, and I don't have any serious Ubic installations around to test it there. My perl skills are rusty...
I'll gladly merge a PR, though.
I'm using Ubic in C++ tests, so I cannot run ubic services just using Ubic.pm.
Typical workflow is:
ubic-admin setup
to make all needed directories in a temp directory.So far everything is OK. But on the first step I cannot avoid reconfiguration of local ubic.cfg.
I'd like to have an option like
--user-config
and--no-user-config
(similar to--crontab
) to be able to turn off reconfiguration of ubic.cfg.I don't send a patch as I don't know whether anything should be prompted for this option or not.
Another idea that I have is that instead of
UBIC_DIR
,UBIC_SERVICE_DIR
, etc. you could have smth. likeUBIC_CONFIG_FILE
and all the other options would be placed in that file.The text was updated successfully, but these errors were encountered: