statements.add(Statements.exec(String.format("useradd %s %s", options, login)));
if (authorizeRSAPublicKeys.size() > 0 || installRSAPrivateKey != null) {
String sshDir = homeDir + "{fs}.ssh";
if (authorizeRSAPublicKeys.size() > 0)
statements.add(new AuthorizeRSAPublicKeys(sshDir, authorizeRSAPublicKeys));
if (installRSAPrivateKey != null)
statements.add(new InstallRSAPrivateKey(sshDir, installRSAPrivateKey));
}
statements.add(Statements.exec(String.format("chown -R %s %s", login, homeDir)));
return new StatementList(statements.build()).render(family);