Exemplo n.º 1
0
 public static IApplicationCaller NewVcsRunner(RepositoryTypeChecker.RepositoryType repositoryType, string[] args)
 {
     switch (repositoryType)
     {
         case RepositoryTypeChecker.RepositoryType.Svn:
             return new VcsRunner(GitToSvnConfiguration.SvnBinary, new SvnArguments(args).ArgumentsAsString);
         case RepositoryTypeChecker.RepositoryType.Git:
             return new VcsRunner(GitToSvnConfiguration.GitBinary, new GitArguments(args).ArgumentsAsString);
         default:
             throw new NotImplementedException(string.Format("Vcs of {0} type is not supported yet", repositoryType));
     }
 }
 public static IApplicationCaller NewRepositoryInformation(RepositoryTypeChecker.RepositoryType repositoryType)
 {
     switch (repositoryType)
     {
         case RepositoryTypeChecker.RepositoryType.Svn:
             return new RepositoryInformation(GitToSvnConfiguration.SvnBinary, GitToSvnConfiguration.SvnInfoArgument);
         case RepositoryTypeChecker.RepositoryType.Git:
             return new RepositoryInformation(GitToSvnConfiguration.GitBinary, GitToSvnConfiguration.GitSvnInfoArgument);
         default:
             throw new NotImplementedException(string.Format("Checking repository of type {0} is not supported yet", repositoryType));
     }
 }