get_path
Public callable
Resolve a configured Fabric path for an environment and target.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env
|
str
|
Environment key such as |
required |
target
|
str
|
Target key such as |
required |
config
|
FrameworkConfig | PathConfig | None
|
Configuration that contains environment-to-target path mappings. |
required |
Returns:
| Type | Description |
|---|---|
Any
|
Housepath-style object with |
Raises:
| Type | Description |
|---|---|
ValueError
|
If config is missing, or if the environment/target mapping does not exist. |
Examples:
>>> get_path("Sandbox", "Source", config=CONFIG)
Housepath(...)
Source code in src/fabricops_kit/config.py
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 | |