Skip to content

Commit

Permalink
adding hasStack method for ConfigExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
pacostas authored and ForestEckhardt committed May 4, 2023
1 parent 1dd83ed commit 97dea53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cargo/extension_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,13 @@ func DecodeExtensionConfig(reader io.Reader, extensionConfig *ExtensionConfig) e

return json.Unmarshal(content, extensionConfig)
}

func (cd ConfigExtensionMetadataDependency) HasStack(stack string) bool {
for _, s := range cd.Stacks {
if s == stack {
return true
}
}

return false
}

0 comments on commit 97dea53

Please sign in to comment.