示例#1
0
        public static void GitReleaseManagerExport(this ICakeContext context, string token, string owner, string repository, FilePath fileOutputPath, GitReleaseManagerExportSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var publisher = new GitReleaseManagerExporter(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            publisher.Export(token, owner, repository, fileOutputPath, settings);
        }
示例#2
0
        public static void GitReleaseManagerExport(this ICakeContext context, string userName, string password, string owner, string repository, FilePath fileOutputPath, GitReleaseManagerExportSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            var resolver  = new GitReleaseManagerToolResolver(context.FileSystem, context.Environment, context.Globber);
            var publisher = new GitReleaseManagerExporter(context.FileSystem, context.Environment, context.ProcessRunner, context.Globber, resolver);

            publisher.Export(userName, password, owner, repository, fileOutputPath, settings);
        }
        protected override void RunTool()
        {
            var tool = new GitReleaseManagerExporter(FileSystem, Environment, ProcessRunner, Tools);

            if (_useToken)
            {
                tool.Export(Token, Owner, Repository, FileOutputPath, Settings);
            }
            else
            {
                tool.Export(UserName, Password, Owner, Repository, FileOutputPath, Settings);
            }
        }
        public void Export()
        {
            var tool = new GitReleaseManagerExporter(FileSystem, Environment, ProcessRunner, Globber, GitReleaseManagerToolResolver);

            tool.Export(UserName, Password, Owner, Repository, FileOutputPath, Settings);
        }