Exemplo n.º 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);
        }
Exemplo n.º 2
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);
        }