-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.daktari.py
42 lines (37 loc) · 1.29 KB
/
.daktari.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
from daktari.checks.files import *
from daktari.checks.git import *
from daktari.checks.intellij_idea import *
from daktari.checks.java import *
from daktari.checks.misc import *
daktari_version = "0.0.171"
title = "Dartzee"
using_asdf = ".asdf/shims" in os.getenv("PATH")
asdf_suggestion = "Run <cmd>./init-asdf.sh</cmd>"
class AwsSecretFilesPresent(FilesExist):
name = "secrets.exist"
file_paths = [
"src/main/resources/AWS_LOGS",
"src/main/resources/AWS_SYNC",
]
pass_fail_message = "AWS credentials are <not/> present"
suggestions = {
OS.GENERIC: """
Download the secret files from 1Password and place them in src/main/resources
"""
}
checks = [
GitInstalled(),
JavaVersion(
required_version=">=11.0.0",
recommended_version="<12.0.0"
).suggest_if(using_asdf, asdf_suggestion),
EnvVarSet(
variable_name="JAVA_HOME",
provision_command="Add export JAVA_HOME=... to ~/.bashrc or ~/.zshrc",
).suggest_if(using_asdf,
"Follow the instructions at https://github.com/halcyon/asdf-java?tab=readme-ov-file#java_home"),
IntelliJIdeaInstalled(recommended_version=">=2022.3.2"),
IntelliJProjectImported(),
IntelliJProjectSdkJavaVersion(11),
AwsSecretFilesPresent(),
]