protected override int Execute() { Log.Info("Updating packages"); PackageUpdater.UpdatePackages(); var cwd = Directory.GetCurrentDirectory(); var module = Path.GetFileName(cwd); var curRepo = new GitRepository(module, Helper.CurrentWorkspace, Log); if (treeish == null) { treeish = curRepo.CurrentLocalTreeish().Value; } var getter = new ModuleGetter( Helper.GetModules(), new Dep(module, treeish), policy, null, verbose); getter.GetModule(); return(0); }
public void SetSystemValues(ParticleSystem system, ModuleType moduleType, string propertyName, object newValue) { ModuleGetter mG = moduleGetterByEnum[moduleType]; object module = mG.GetModule(system); valueSettersByModuleGetter[mG][propertyName].SetValue(module, newValue); }
private void GetWithoutDependencies(Dep dep, List <Module> modules) { var getter = new ModuleGetter( modules, dep, LocalChangesPolicy.FailOnLocalChanges, null); getter.GetModule(); }
public void Get(string module, string treeish = null, LocalChangesPolicy localChangesPolicy = LocalChangesPolicy.FailOnLocalChanges) { var getter = new ModuleGetter( GetModules().ToList(), new Dep(module, treeish), localChangesPolicy, null); getter.GetModule(); getter.GetDeps(); }
private void GetModule() { var getter = new ModuleGetter( Helper.GetModules(), new Dep(module, treeish, configuration), policy, mergedBranch, verbose); getter.GetModule(); ConsoleWriter.WriteInfo("Getting deps for " + module); Log.Info("Getting deps list for " + module); getter.GetDeps(); }