Esempio n. 1
0
        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);
        }
Esempio n. 2
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);
    }
Esempio n. 3
0
        private void GetWithoutDependencies(Dep dep, List <Module> modules)
        {
            var getter = new ModuleGetter(
                modules,
                dep,
                LocalChangesPolicy.FailOnLocalChanges,
                null);

            getter.GetModule();
        }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        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();
        }