public CreateReleaseArgumentBuilder(string projectName, CreateReleaseSettings settings, ICakeEnvironment environment) { _projectName = projectName; _settings = settings; _environment = environment; _builder = new ProcessArgumentBuilder(); }
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)); } } }
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); }