Beispiel #1
0
 public CreateReleaseArgumentBuilder(string projectName, CreateReleaseSettings settings, ICakeEnvironment environment)
 {
     _projectName = projectName;
     _settings    = settings;
     _environment = environment;
     _builder     = new ProcessArgumentBuilder();
 }
Beispiel #2
0
 private static void AppendPackages(CreateReleaseSettings settings, ProcessArgumentBuilder builder)
 {
     if (settings.Packages != null)
     {
         foreach (var package in settings.Packages)
         {
             builder.Append("--package");
             builder.AppendQuoted(string.Format(
                                      System.Globalization.CultureInfo.InvariantCulture,
                                      "{0}:{1}",
                                      package.Key,
                                      package.Value));
         }
     }
 }
Beispiel #3
0
        public static void OctoCreateRelease(this ICakeContext context, string projectName, CreateReleaseSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            var packer = new OctopusDeployReleaseCreator(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            packer.CreateRelease(projectName, settings);
        }