IGitLabCakeContext Interface

Summary

A ICakeContext that provides a implementation of IGitLabProvider for use with the Cake.GitLab aliases (GitLabAliases)
Assembly
Cake.GitLab.dll
Namespace
Cake.GitLab.Testing
Interfaces
  • ICakeContext
graph BT Type-.->Interface0["ICakeContext"] Type["IGitLabCakeContext"] class Type type-node

Syntax

public interface IGitLabCakeContext : ICakeContext

Remarks

When one of the aliases from GitLabAliases is used with a Cake context that implements this interface, the provider returned by GitLab will be used instead of the default implementation of the aliases. (IGitLabProvider defines methods that correspond 1:1 to alias definitions in GitLabAliases).

USe this to provide mock/test implementations of IGitLabProvider for (unit-)testing.

Attributes

Type Description
NullableContextAttribute

Properties

Name Value Summary
GitLab IGitLabProvider
Gets the IGitLabProvider to use.

Extension Methods

Name Value Summary
Dump<IGitLabCakeContext>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<IGitLabCakeContext>(IGitLabCakeContext[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<IGitLabCakeContext>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<IGitLabCakeContext>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<IGitLabCakeContext>(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<IGitLabCakeContext>(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
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin