public GitReleaseManagerPublisherFixture() { UserName = "******"; Password = "******"; Owner = "repoOwner"; Repository = "repo"; TagName = "0.1.0"; Settings = new GitReleaseManagerPublishSettings(); }
public static void GitReleaseManagerPublish(this ICakeContext context, string token, string owner, string repository, string tagName, GitReleaseManagerPublishSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var publisher = new GitReleaseManagerPublisher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); publisher.Publish(token, owner, repository, tagName, settings); }
public static void GitReleaseManagerPublish(this ICakeContext context, string userName, string password, string owner, string repository, string tagName, GitReleaseManagerPublishSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } var resolver = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber); var publisher = new GitReleaseManagerPublisher(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver); publisher.Publish(userName, password, owner, repository, tagName, settings); }