protected override void RunTool() { var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Tools); if (_useToken) { tool.Create(Token, Owner, Repository, Settings); } else { tool.Create(UserName, Password, Owner, Repository, Settings); } }
public static void GitReleaseManagerCreate(this ICakeContext context, string token, string owner, string repository, GitReleaseManagerCreateSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var creator = new GitReleaseManagerCreator(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); creator.Create(token, owner, repository, settings); }
public static void GitReleaseManagerCreate(this ICakeContext context, string userName, string password, string owner, string repository, GitReleaseManagerCreateSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var resolver = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber); var creator = new GitReleaseManagerCreator(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver); creator.Create(userName, password, owner, repository, settings); }
protected override void RunTool() { var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Globber, Resolver); tool.Create(UserName, Password, Owner, Repository, Settings); }
public void Create() { var tool = new GitReleaseManagerCreator(FileSystem, Environment, ProcessRunner, Globber, GitReleaseManagerToolResolver); tool.Create(UserName, Password, Owner, Repository, Settings); }