Ejemplo n.º 1
0
        private static void ExecuteRunner(this ICakeContext context, LocalDbSettings settings)
        {
            context.Log.Information(Verbosity.Normal, "Executing SQLLocalDB.exe with action {0} on instance {1}", settings.Action, settings.InstanceName);
            var localDbRunner = new LocalDbToolRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log);

            localDbRunner.Run(settings);
        }
Ejemplo n.º 2
0
        public static void LocalDbCreateInstance(this ICakeContext context, string instanceName)
        {
            var settings = new LocalDbSettings
            {
                Action       = LocalDbAction.Create,
                InstanceName = instanceName,
            };

            ExecuteRunner(context, settings);
        }