public static void DNURestore(this ICakeContext context, FilePath filePath, DNURestoreSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (settings == null) { settings = new DNURestoreSettings(); } var restorer = new DNURestorer(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); restorer.Restore(filePath, settings); }
protected override void RunTool() { var tool = new DNURestorer(FileSystem, Environment, ProcessRunner, Tools); tool.Restore(FilePath, Settings); }