fun add(targetPath: String, vararg types: String): Directory
Add a single directory to the component.
targetPath - a relative path for the component
types - set of deployment or environment types
fun add(targetPath: String): Directory
Add a single directory to the component.
targetPath - a relative path for the component
fun add(targetPath: String, action: Action<in Directory>): Unit
Add a single directory to the component and configures this component.
targetPath - a relative path for the component
action - action to configure all parameters of directory item.