/// <summary>
 /// Used for the final save
 /// </summary>
 /// <param name="sqlTemplate"></param>
 /// <param name="scriptName"></param>
 /// <param name="sqlFileContent"></param>
 private void ProcessRulesOutput(SqlTemplate sqlTemplate, string scriptName, string sqlFileContent)
 {
     if (_scriptCheck.CheckIfScriptExists(sqlTemplate, scriptName))
     {
         _processTemplate.ApplyExistingCodeTemplate(scriptName, sqlTemplate);
         _fileAccess.WriteToFile($"{sqlTemplate.OutputDirectory}{scriptName}", sqlFileContent);
         _fileAccess.AddLineToFile(_settings.ScriptHistoryFile, scriptName);
     }
     else
     {
         _processTemplate.ApplyRollBackTemplate(scriptName, sqlFileContent, sqlTemplate);
         _fileAccess.WriteToFile($"{sqlTemplate.OutputDirectory}{scriptName}", sqlFileContent);
         _fileAccess.AddLineToFile(_settings.ScriptHistoryFile, scriptName);
     }
 }