Remove SshInfo from email templates and move to sysInjector
SshInfo in the web context comes from SshDaemon and thus must be bound
in a child of sysInjector. This doesn't work for REST API endpoints,
so email template classes cannot depend on SshInfo.
The only thing they really need, though, is the advertised SSH
address, which comes directly from the server config. Move the server
config parsing logic into a module in gerrit-server and inject the
lists of listening and advertised addresses into SshDaemon as well as
EmailArguments.
Change-Id: Iee393e625898c00c3dac02e6a407ecb866a939ff
13 files changed