Пример #1
0
        public static void GitReleaseManagerDiscard(this ICakeContext context, string token, string owner, string repository, string milestone, GitReleaseManagerDiscardSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var discarder = new GitReleaseManagerDiscarder(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            discarder.Discard(token, owner, repository, milestone, settings);
        }
        protected override void RunTool()
        {
            var tool = new GitReleaseManagerDiscarder(FileSystem, Environment, ProcessRunner, Tools);

            tool.Discard(Token, Owner, Repository, Milestone, Settings);
        }