Пример #1
0
 public void CreateDepsAndCommitThem(string path, Dictionary <string, DepsContent> depsByConfig, DepsFormatStyle depsStyle = DepsFormatStyle.Yaml)
 {
     if (depsStyle == DepsFormatStyle.Yaml)
     {
         CreateDepsYamlStyle(path, depsByConfig);
     }
     if (depsStyle == DepsFormatStyle.Ini)
     {
         CreateDepsIniStyle(path, depsByConfig);
     }
 }
Пример #2
0
        public void CreateRepo(string moduleName, Dictionary <string, DepsContent> depsByConfig = null, IList <string> branches = null, DepsFormatStyle depsStyle = DepsFormatStyle.Yaml)
        {
            var modulePath = Path.Combine(RemoteWorkspace, moduleName);

            using (new DirectoryJumper(modulePath))
            {
                CreateRepoAndCommitReadme();
                CreateDepsAndCommitThem(modulePath, depsByConfig, depsStyle);
                CreateBranches(branches);
            }
            AppendModule(moduleName, modulePath);
        }