This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Yeoman.
Summary
Runs a Yeoman generator with specified settings.
- Assembly
- Cake
.Yeoman .dll - Namespace
- Cake
.Yeoman - Containing Type
- YeomanAliases
Syntax
public static void RunYeomanGenerator(this ICakeContext context, string generator, YeomanRunnerSettings settings)
Examples
Define working directory:
var settings =
new YeomanRunnerSettings
{
WorkingDirectory = "c:\myproject"
};
RunYeomanGenerator("myGenerator", settings);
Pass arguments to generator:
var settings =
new YeomanRunnerSettings
{
Arguments = new List<string>("Foo")
};
RunYeomanGenerator("myGenerator", settings);
Attributes
Type | Description |
---|---|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
generator | string | Name of the generator to run. |
settings | YeomanRunnerSettings | Settings for running Yeoman. |
Return Value
Type | Description |
---|---|
void |