C# Class Bari.Plugins.FSRepository.Model.RepositoryPattern

Represents a file-system repository pattern, and implements its resolution

The pattern supports the following placeholders: - $ENVVAR replaced to the value of ENVVAR environment variable, if exists. - %NAME replaced to the name of the dependency - %FILENAME replaced to the file name, without extension - %VERSION replaced to the requested version, if any, otherwise empty string - %EXT replaced to the file name's extension

Datei anzeigen Open project: vigoo/bari Class Usage Examples

Public Methods

Method Description
RepositoryPattern ( string pattern ) : System.Diagnostics.Contracts

Defines a pattern

Resolve ( IPatternResolutionContext context ) : string

Tries to resolve the pattern using the given context

Method Details

RepositoryPattern() public method

Defines a pattern
public RepositoryPattern ( string pattern ) : System.Diagnostics.Contracts
pattern string The pattern as read from the suite definition
return System.Diagnostics.Contracts

Resolve() public method

Tries to resolve the pattern using the given context
public Resolve ( IPatternResolutionContext context ) : string
context IPatternResolutionContext The context to get variables from
return string