public static ActionOutcome Process(Outcome mostConfidentOutcome) { Dictionary <string, string> branchNameAndPath = new Dictionary <string, string> { { "trunk", GlobalValues.TrunkSolutionPath } }; string branchName = mostConfidentOutcome.Entities.branch_name[0].value; if (!branchNameAndPath.ContainsKey(branchName)) { return(ActionOutcome.CommandNotFound); } CommonWindowsCalls.Process(branchNameAndPath[branchName]); return(ActionOutcome.Success); }
public static ActionOutcome Process(Outcome mostConfidentOutcome) { Dictionary <string, string> branchNameAndPath = new Dictionary <string, string> { { "trunk", @"C:\Sourcen\trunk\trunk" }, { "frozen", @"C:\Sourcen\frozen\frozen" } }; string branchName = mostConfidentOutcome.Entities.branch_name[0].value; if (!branchNameAndPath.ContainsKey(branchName)) { return(ActionOutcome.CommandNotFound); } CommonWindowsCalls.Process(@"C:\Programme\tortoiseSVN\bin\TortoiseProc.exe", string.Format(@"/command:commit /path:{0}", branchNameAndPath[branchName])); return(ActionOutcome.Success); }
public static ActionOutcome Process(Outcome mostConfidentOutcome) { CommonWindowsCalls.Process(@"C:\Program Files (x86)\MediaMonkey\MediaMonkey.exe"); return(ActionOutcome.Success); }