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

            if (_useToken)
            {
                tool.Close(Token, Owner, Repository, Milestone, Settings);
            }
            else
            {
                tool.Close(UserName, Password, Owner, Repository, Milestone, Settings);
            }
        }
Ejemplo n.º 2
0
        public static void GitReleaseManagerClose(this ICakeContext context, string token, string owner, string repository, string milestone, GitReleaseManagerCloseMilestoneSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var milestoneCloser = new GitReleaseManagerMilestoneCloser(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            milestoneCloser.Close(token, owner, repository, milestone, settings);
        }
Ejemplo n.º 3
0
        public static void GitReleaseManagerClose(this ICakeContext context, string userName, string password, string owner, string repository, string milestone, GitReleaseManagerCloseMilestoneSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver        = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber);
            var milestoneCloser = new GitReleaseManagerMilestoneCloser(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver);

            milestoneCloser.Close(userName, password, owner, repository, milestone, settings);
        }
Ejemplo n.º 4
0
        public void Close()
        {
            var tool = new GitReleaseManagerMilestoneCloser(FileSystem, Environment, ProcessRunner, Globber, GitReleaseManagerToolResolver);

            tool.Close(UserName, Password, Owner, Repository, Milestone, Settings);
        }