Skip to content

Commit 39f0000

Browse files
committed
rename hooks -> plugin
1 parent 0d35477 commit 39f0000

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

resources/plugins/simln/simln.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from subprocess import run
66
from time import sleep
77

8-
from warnet.hooks import _get_plugin_directory as get_plugin_directory
98
from warnet.k8s import get_pods_with_label, wait_for_pod
9+
from warnet.plugin import _get_plugin_directory as get_plugin_directory
1010
from warnet.process import run_command
1111
from warnet.status import _get_tank_status as network_status
1212

src/warnet/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
PLUGIN_MISSION,
2727
TANK_MISSION,
2828
)
29-
from .hooks import api
3029
from .k8s import (
3130
can_delete_pods,
3231
delete_pod,
@@ -42,6 +41,7 @@
4241
wait_for_pod,
4342
write_file_to_container,
4443
)
44+
from .plugin import api
4545
from .process import run_command, stream_command
4646

4747
console = Console()

src/warnet/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
NETWORK_FILE,
2323
WARGAMES_NAMESPACE_PREFIX,
2424
)
25-
from .hooks import api
2625
from .k8s import (
2726
get_default_namespace,
2827
get_default_namespace_or,
@@ -31,6 +30,7 @@
3130
wait_for_ingress_controller,
3231
wait_for_pod_ready,
3332
)
33+
from .plugin import api
3434
from .process import stream_command
3535

3636
HINT = "\nAre you trying to run a scenario? See `warnet run --help`"

src/warnet/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from .dashboard import dashboard
77
from .deploy import deploy
88
from .graph import create, graph, import_network
9-
from .hooks import plugin
109
from .image import image
1110
from .ln import ln
11+
from .plugin import plugin
1212
from .project import init, new, setup
1313
from .status import status
1414
from .users import auth

src/warnet/network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
PLUGINS_DIR,
1111
SCENARIOS_DIR,
1212
)
13-
from .hooks import create_hooks
1413
from .k8s import get_mission
14+
from .plugin import create_hooks
1515

1616

1717
def copy_defaults(directory: Path, target_subdir: str, source_path: Path, exclude_list: list[str]):
File renamed without changes.

0 commit comments

Comments
 (0)