C# Class Octopus.Cli.Util.FeedCustomExpressionHelper

Helps with situations where feeds use custom expressions Eg. #{MyCustomFeedURL}
Mostra file Open project: OctopusDeploy/Octo.exe

Public Properties

Property Type Description
CustomExpressionFeedName string

Public Methods

Method Description
CustomExpressionFeedWithId ( string id ) : FeedResource
IsRealFeedId ( string id ) : bool

Helps to check for a valid repository-based feed Id. Feeds may have custom expressions as their Id, which may contain Octostache variable syntax #{MyCustomFeedURL}. If you pass a custom expression Id like this to the API, it will resolve to /api/feeds/, return all the feeds, then attempt to cast that response to a FeedResource object and you'll end up getting an empty FeedResource object instead of null. This method helps you detect valid repository feed objects before running into this confusing API scenario.

Method Details

CustomExpressionFeedWithId() public static method

public static CustomExpressionFeedWithId ( string id ) : FeedResource
id string
return Octopus.Client.Model.FeedResource

IsRealFeedId() public static method

Helps to check for a valid repository-based feed Id. Feeds may have custom expressions as their Id, which may contain Octostache variable syntax #{MyCustomFeedURL}. If you pass a custom expression Id like this to the API, it will resolve to /api/feeds/, return all the feeds, then attempt to cast that response to a FeedResource object and you'll end up getting an empty FeedResource object instead of null. This method helps you detect valid repository feed objects before running into this confusing API scenario.
public static IsRealFeedId ( string id ) : bool
id string
return bool

Property Details

CustomExpressionFeedName public_oe static_oe property

public static string CustomExpressionFeedName
return string