YeomanAliases.

RunYeomanGenerator(ICakeContext, string, YeomanRunnerSettings) Method

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
CakeMethodAliasAttribute

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