예제 #1
0
        public static void OctoPush(this ICakeContext context, string server, string apiKey, IEnumerable <FilePath> packagePaths, OctopusPushSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (packagePaths == null)
            {
                throw new ArgumentNullException(nameof(packagePaths));
            }

            var pusher = new OctopusDeployPusher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            pusher.PushPackage(server, apiKey, packagePaths.ToArray(), settings);
        }
예제 #2
0
 public static void OctoPush(this ICakeContext context, string server, string apiKey, FilePath packagePath, OctopusPushSettings settings)
 {
     OctoPush(context, server, apiKey, new[] { packagePath }, settings);
 }
예제 #3
0
        public static void OctoPush(this ICakeContext context, string server, string apiKey, IEnumerable <FilePath> packagePaths, OctopusPushSettings settings)
        {
            var pusher = new OctopusDeployPusher(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            pusher.PushPackage(server, apiKey, packagePaths.ToArray(), settings);
        }