public void Save(SystemModel model, string modelDirectory) { Directory.CreateDirectory(modelDirectory); foreach (var splitModel in model.SplitModel().Select(YamlOctopusModel.FromModel)) { SaveModel(splitModel, GetModelPath(splitModel, modelDirectory)); } }