C# Class Bari.Core.Tools.ExternalTool

Base class for running and acquiring external tools
Datei anzeigen Open project: vigoo/bari

Public Methods

Method Description
Run ( IFileSystemDirectory root ) : bool

Runs the external tool with the given parameters

Protected Methods

Method Description
EnsureToolAvailable ( ) : void

Checks if the tool is available and download, copy, install etc. it if possible

If the tool cannot be acquired then it throws an exception.

ExternalTool ( string name, IParameters parameters ) : System

Initializes the tool runner

Method Details

EnsureToolAvailable() protected abstract method

Checks if the tool is available and download, copy, install etc. it if possible

If the tool cannot be acquired then it throws an exception.

protected abstract EnsureToolAvailable ( ) : void
return void

ExternalTool() protected method

Initializes the tool runner
protected ExternalTool ( string name, IParameters parameters ) : System
name string Name of the external tool, for debugging and error handling purposes
parameters IParameters Parameters, to determine if running in mono mode or not
return System

Run() public method

Runs the external tool with the given parameters
public Run ( IFileSystemDirectory root ) : bool
root IFileSystemDirectory Working directory
return bool