Ejemplo n.º 1
0
        public string CreateQuery()
        {
            var sf = string.Format("{0} {1} {2} ", SelectCommand.TrimStart(), FromCommand.TrimStart(), WhereCommand);

            return(sf);
        }
Ejemplo n.º 2
0
 public CurrentBuild(FromCommand fromCommand, Dictionary <string, string> buildArgs, List <CommandBase> commands)
 {
     FromCommand = fromCommand;
     BuildArgs   = buildArgs;
     Commands    = commands;
 }
Ejemplo n.º 3
0
        public void FromWithAliasShallRenderUsingAS()
        {
            var from = new FromCommand("mcr.microsoft.com/dotnet/sdk:5.0", "net5.0");

            Assert.AreEqual("FROM mcr.microsoft.com/dotnet/sdk:5.0 AS net5.0", from.ToString());
        }
Ejemplo n.º 4
0
 public DockerfileBuild(FromCommand fromCommand, IEnumerable <CommandBase> commands)
 {
     FromCommand = fromCommand;
     Commands    = commands.ToList().AsReadOnly();
 }