/// <summary> /// Initializes a new instance of the <see cref="CakeRunner"/> class. /// </summary> /// <param name="fileSystem">The file system.</param> /// <param name="environment">The environment.</param> /// <param name="globber">The globber.</param> /// <param name="processRunner">The process runner.</param> /// <param name="tools">The tool locator.</param> public CakeRunner(IFileSystem fileSystem, ICakeEnvironment environment, IGlobber globber, IProcessRunner processRunner, IToolLocator tools) : base(fileSystem, environment, processRunner, tools) { _environment = environment; _fileSystem = fileSystem; _globber = globber; _coreExecutor = new DotNetCoreExecutor(fileSystem, environment, processRunner, tools); }
public static void DotNetCoreExecute(this ICakeContext context, FilePath assemblyPath, ProcessArgumentBuilder arguments, DotNetCoreSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (assemblyPath == null) { throw new ArgumentNullException("assemblyPath"); } if (settings == null) { settings = new DotNetCoreExecuteSettings(); } var executor = new DotNetCoreExecutor(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); executor.Execute(assemblyPath, arguments, settings); }
protected override void RunTool() { var tool = new DotNetCoreExecutor(FileSystem, Environment, ProcessRunner, Tools); tool.Execute(AssemblyPath, Arguments, Settings); }