Esempio n. 1
0
 private bool Build(Dep dep, string moduleYaml, string cmdFile)
 {
     if (File.Exists(moduleYaml))
     {
         var scripts = BuildYamlScriptsMaker.PrepareBuildScriptsFromYaml(dep);
         if (scripts.Any(script => script != null))
         {
             return(scripts.All(script => RunBuildScript(dep, script)));
         }
     }
     if (File.Exists(cmdFile))
     {
         return(BuildByCmd(dep, cmdFile));
     }
     ConsoleWriter.WriteSkip($"{dep.ToBuildString(),-40}*content");
     return(true);
 }
Esempio n. 2
0
 public ModuleBuilder(ILogger log, BuildSettings buildSettings, BuildYamlScriptsMaker buildYamlScriptsMaker)
 {
     this.log                   = log;
     this.buildSettings         = buildSettings;
     this.buildYamlScriptsMaker = buildYamlScriptsMaker;
 }