public GitReleaseManagerExporterFixture()
 {
     UserName       = "******";
     Password       = "******";
     Owner          = "repoOwner";
     Repository     = "repo";
     FileOutputPath = "c:/temp";
     Settings       = new GitReleaseManagerExportSettings();
 }
示例#2
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);
        }
示例#3
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);
        }