SquirrelAliases.

SyncReleases(ICakeContext, SyncReleasesSettings, bool, bool) Method

Summary

Runs SyncReleases using the specified settings, if output should be redirected, and if it should be silent.
Assembly
Cake.Squirrel.dll
Namespace
Cake.Squirrel
Containing Type
SquirrelAliases

Syntax

public static void SyncReleases(this ICakeContext context, SyncReleasesSettings settings, bool redirectStandardOutput, bool silent)

Examples

#tool "Squirrel.Windows" 
#addin Cake.Squirrel

Task("SyncReleases")
 .Does(() => {
   var settings = new SyncReleasesSettings {
       ReleaseDirectory = "pathToDirectory"
       Url = new Uri("https://someurl.com");
       Token = "myToken"
   }; 

   SyncReleases(settings, true, false);
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings SyncReleasesSettings The settings.
redirectStandardOutput bool Sets if the output of an tool is written to the System.Diagnostics.Process.StandardOutput stream.
silent bool Sets if the tool output should be suppressed.

Return Value

Type Description
void