public static void DockerComposeLogs(this ICakeContext context, DockerComposeLogsSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var runner = new GenericDockerComposeRunner <DockerComposeLogsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("logs", settings ?? new DockerComposeLogsSettings(), new string[0]);
        }
Beispiel #2
0
        public static IEnumerable <string> DockerComposeLogs(this ICakeContext context, DockerComposeLogsSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var runner = new GenericDockerComposeRunner <DockerComposeLogsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("logs", settings ?? new DockerComposeLogsSettings(), r => r.ToArray()));
        }