public virtual string MakePath(Layer layer) { var path = Path.Combine(Args.EnvDir, layer.SemName.ToString()); //todo:include slices semver Directory.CreateDirectory(path); var f = new FormatterFactory().GetFormatter(Args); if (f.GetType() == typeof(FormatterDocker)) { return(Path.Combine(path, "Dockerfile")); } return(Path.Combine(path, layer.SemName.ToString())); }