protected override void RunTool()
        {
            var tool = new GitReleaseManagerPublisher(FileSystem, Environment, ProcessRunner, Tools);

            if (_useToken)
            {
                tool.Publish(Token, Owner, Repository, TagName, Settings);
            }
            else
            {
                tool.Publish(UserName, Password, Owner, Repository, TagName, Settings);
            }
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
        protected override void RunTool()
        {
            var tool = new GitReleaseManagerPublisher(FileSystem, Environment, ProcessRunner, Globber, Resolver);

            tool.Publish(UserName, Password, Owner, Repository, TagName, Settings);
        }