-
Notifications
You must be signed in to change notification settings - Fork 1
/
.plano.py
47 lines (35 loc) · 1.32 KB
/
.plano.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from transom.planocommands import *
import commands
import concepts
import resources
@command
def generate():
concept_model = concepts.ConceptModel()
resource_model = resources.ResourceModel()
command_model = commands.CommandModel()
concept_model.resource_model = resource_model
concept_model.command_model = command_model
concept_model.concept_model = concept_model
resource_model.concept_model = concept_model
resource_model.command_model = command_model
resource_model.resource_model = resource_model
command_model.concept_model = concept_model
command_model.resource_model = resource_model
command_model.command_model = command_model
resource_model.check()
command_model.check()
concepts.generate(concept_model)
resources.generate(resource_model)
commands.generate(command_model)
@command
def update_crds():
url = "https://github.com/skupperproject/skupper/archive/refs/heads/v2.tar.gz"
crd_dir = get_absolute_path("crds")
with temp_file() as temp:
http_get(url, output_file=temp)
with working_dir(quiet=True):
extract_archive(temp)
extracted_dir = list_dir()[0]
assert is_dir(extracted_dir)
with working_dir(extracted_dir):
copy("api/types/crds", crd_dir, inside=False)