C# Class Leeroy.Watcher

Watches a single build repository, monitoring its submodules for changes.
显示文件 Open project: LogosBible/Leeroy

Public Methods

Method Description
CreateTask ( ) : Task
Watcher ( BuildProject project, BuildServerClient buildServerClient, GitHubClient gitHubClient, CancellationToken token ) : System

Private Methods

Method Description
CreateBlob ( string content ) : Logos.Git.GitHub.GitBlob
CreateNewCommit ( Logos.Git.GitHub.GitCommit parentCommit, string baseTreeSha, List treeItems, string commitMessage ) : Logos.Git.GitHub.GitCommit
GetSubmodules ( ) : void
LoadSubmodules ( Logos.Git.GitHub.GitTree buildRepoTree ) : void
ParseConfigFile ( TextReader reader ) : IEnumerable>>
ReadGitModulesBlob ( Logos.Git.GitHub.GitTree tree ) : string
ReadSubmodulesFromConfig ( ) : void
Run ( object obj ) : void
SplitRepoUrl ( string url, string &server, string &user, string &repo ) : bool
StartBuild ( ) : void
SyncSubmodules ( Logos.Git.GitHub.GitCommit buildRepoCommit, Logos.Git.GitHub.GitTree buildRepoTree ) : void
TryAdvanceBranch ( string newSha ) : bool
UpdateSubmodules ( string>.IDictionary updatedSubmodules ) : bool
UpdateSubmodules ( Logos.Git.GitHub.GitCommit buildRepoCommit, Logos.Git.GitHub.GitTree buildRepoTree, bool rewriteGitModules ) : void

Method Details

CreateTask() public method

public CreateTask ( ) : Task
return Task

Watcher() public method

public Watcher ( BuildProject project, BuildServerClient buildServerClient, GitHubClient gitHubClient, CancellationToken token ) : System
project Leeroy.Json.BuildProject
buildServerClient BuildServerClient
gitHubClient GitHubClient
token System.Threading.CancellationToken
return System