Beispiel #1
0
        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());
        }
Beispiel #2
0
 public virtual void Write(Layer layer, string path)
 {
     var formatter = new FormatterFactory().GetFormatter(Args);
     Write(layer, path, formatter);
 }