Пример #1
0
        public bool HasBranchBeenUpdated(string hash)
        {
            var manifest   = _manifestProvider.GetManifestFromFile();
            var hasChanged = !manifest.Ids.Contains(hash);

            return(hasChanged);
        }
Пример #2
0
        public override async Task Execute()
        {
            await base.Execute();

            var manifest = _manifestProvider.GetManifestFromFile();

            var data = _dataContainer.BuildData;

            manifest.Ids.Add(data.Query.Hash);
            manifest.LastBuildIndex = data.BuildIndex;

            _manifestProvider.SaveManifestToFile(manifest);

            Complete();
        }