Rely on Gitlab::Shell public API, not reading internal files it may use
Rely on Gitlab::Shell public API, not reading internal files it may use

It ensures we rely on `Gitlab::Shell`'s public API and not on its
internal. Since `Gitlab::Shell` is caching the value of its token, the
only way to get the correct token is to call
`Gitlab::Shell.secret_token`, not to read the
`Gitlab.config.gitlab_shell.secret_file` file!

Signed-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>

dreampet/gitlab,dplarson/gitlabhq,iiet/iiet-git,openwide-java/gitlabhq,LUMC/gitlabhq,mmkassem/gitlabhq,axilleas/gitlabhq,htve/GitlabForChinese,darkrasid/gitlabhq,LUMC/gitlabhq,iiet/iiet-git,dplarson/gitlabhq,jirutka/gitlabhq,LUMC/gitlabhq,htve/GitlabForChinese,jirutka/gitlabhq,dreampet/gitlab,htve/GitlabForChinese,mmkassem/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq,htve/GitlabForChinese,axilleas/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,openwide-java/gitlabhq,mmkassem/gitlabhq,darkrasid/gitlabhq,axilleas/gitlabhq,t-zuehlsdorff/gitlabhq,t-zuehlsdorff/gitlabhq,darkrasid/gitlabhq,dplarson/gitlabhq,darkrasid/gitlabhq,iiet/iiet-git,dplarson/gitlabhq,openwide-java/gitlabhq,jirutka/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,LUMC/gitlabhq,openwide-java/gitlabhq