ChocolateySources Class

Summary

The Chocolatey sources is used to work with user config feeds & credentials.
graph BT Type-->Base0["ChocolateyTool<ChocolateySourcesSettings>"] Base0-->Base1["Tool<ChocolateySourcesSettings>"] Base1-->Base2["object"] Type["ChocolateySources"] class Type type-node

Syntax

public sealed class ChocolateySources : ChocolateyTool<ChocolateySourcesSettings>

Constructors

Methods

Name Value Summary
AddSource(string, string, ChocolateySourcesSettings) void
Adds Chocolatey package source using the specified settings to global user config.
DisableSource(string, ChocolateySourcesSettings) void
Disable specified Chocolatey package source.
EnableSource(string, ChocolateySourcesSettings) void
Enable specified Chocolatey package source.
RemoveSource(string, ChocolateySourcesSettings) void
Remove specified Chocolatey package source.

Extension Methods

Name Value Summary
Dump<ChocolateySources>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<ChocolateySources>(ChocolateySources[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<ChocolateySources>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<ChocolateySources>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<ChocolateySources>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<ChocolateySources>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin