instead of logic in the template, this should be done in the ssh class and a variable used. such as

template:
<pre>
Subsystem       sftp    <%= @sftp_server_real -%> 
</pre>