daktari 0.0.221__py3-none-any.whl → 0.0.222__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- daktari/__init__.py +1 -1
- daktari/checks/aws.py +34 -0
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/METADATA +2 -2
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/RECORD +8 -7
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/LICENSE.txt +0 -0
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/WHEEL +0 -0
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/entry_points.txt +0 -0
- {daktari-0.0.221.dist-info → daktari-0.0.222.dist-info}/top_level.txt +0 -0
daktari/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.0.
|
|
1
|
+
__version__ = "0.0.222"
|
daktari/checks/aws.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from daktari.check import Check, CheckResult
|
|
2
|
+
from daktari.command_utils import can_run_command, get_stdout
|
|
3
|
+
from daktari.os import OS
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AWSCLIInstalled(Check):
|
|
7
|
+
name = "aws.cliInstalled"
|
|
8
|
+
|
|
9
|
+
suggestions = {
|
|
10
|
+
OS.OS_X: """<cmd>curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" && \
|
|
11
|
+
sudo installer -pkg AWSCLIV2.pkg -target /</cmd>""",
|
|
12
|
+
OS.UBUNTU: """"<cmd>curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
|
|
13
|
+
unzip awscliv2.zip && \
|
|
14
|
+
sudo ./aws/install</cmd>""",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
def check(self) -> CheckResult:
|
|
18
|
+
return self.verify(can_run_command("aws --version"), "AWS CLI is <not/> installed and on $PATH")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class AWSProfileExists(Check):
|
|
22
|
+
depends_on = [AWSCLIInstalled]
|
|
23
|
+
|
|
24
|
+
def __init__(self, profile_name: str, suggestions: dict[str, str]):
|
|
25
|
+
self.profile_name = profile_name
|
|
26
|
+
self.name = f"aws.profileExists.{profile_name}"
|
|
27
|
+
self.suggestions = suggestions
|
|
28
|
+
|
|
29
|
+
def check(self) -> CheckResult:
|
|
30
|
+
output = get_stdout("aws configure list-profiles")
|
|
31
|
+
passed = bool(output and self.profile_name in output)
|
|
32
|
+
if not passed:
|
|
33
|
+
return self.failed(f"{self.profile_name} is not configured for the current user")
|
|
34
|
+
return self.passed(f"{self.profile_name} is configured for the current user")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: daktari
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.222
|
|
4
4
|
Summary: Assist in setting up and maintaining developer environments
|
|
5
5
|
Home-page: https://github.com/sonocent/daktari
|
|
6
6
|
Author: Matt Russell
|
|
@@ -46,7 +46,7 @@ In the root of the project repository, create a `.daktari.py` configuration file
|
|
|
46
46
|
```python
|
|
47
47
|
from daktari.checks.git import *
|
|
48
48
|
|
|
49
|
-
version = "0.0.
|
|
49
|
+
version = "0.0.222"
|
|
50
50
|
title = "My Project"
|
|
51
51
|
|
|
52
52
|
checks = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
daktari/__init__.py,sha256=
|
|
1
|
+
daktari/__init__.py,sha256=4wRlHarySvk8SKUC9I6N0Z3AFTFM1apZ8wC4geYQSbA,24
|
|
2
2
|
daktari/__main__.py,sha256=iYwgtZZE2HD9Eh9Io6OliGQwCNZJSde_66jI6kF8xJU,1463
|
|
3
3
|
daktari/asdf.py,sha256=fALVL6UTz1AYxuabw9MZeAES7J_CvImutUDD1Y2yWwM,509
|
|
4
4
|
daktari/check.py,sha256=WzIiCrrdH7gCbElNwYbYkjhpmaOs_nUWfvkTBkfZlgs,4133
|
|
@@ -26,6 +26,7 @@ daktari/test_version_utils.py,sha256=cqudpmYKvqNkgBB9L5qLaxpVM7nD-XYuBMQXY3VohmA
|
|
|
26
26
|
daktari/version_utils.py,sha256=o-7Vj0xjY2l6_ecQlOvL-qzfnuE-lZCusQlXHgGLf5g,913
|
|
27
27
|
daktari/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
daktari/checks/android.py,sha256=Mad4m2wFw0P6FzW0xaDrir8BR5Wj27n-e5ducKE62Jc,1092
|
|
29
|
+
daktari/checks/aws.py,sha256=hbeFAazhY1cmSpKJuJn2-iMs86zdpK6EOmOQGzz0B0U,1332
|
|
29
30
|
daktari/checks/certs.py,sha256=_Q_1tNEwDoO-q-vPx2wOmGYqN-s4osK4gSRpKU5TFbU,1262
|
|
30
31
|
daktari/checks/conan.py,sha256=_IWjb5wkbxh-dR6DnEaMpmgzIOkuLWnfMos8sRDmLek,4061
|
|
31
32
|
daktari/checks/direnv.py,sha256=4J2GjbCX-2r7vxuRrNayGa2aq0WcNO07VFtgUvYU0Rc,2271
|
|
@@ -55,9 +56,9 @@ daktari/checks/yarn.py,sha256=T8b_oOoZ4l96delmPgPfgtaTkiUS129hoWlGIBcU7Io,5534
|
|
|
55
56
|
daktari/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
57
|
daktari/resources/daktari-local-template.yaml,sha256=ik7KzMcG1r90nxDOk7t5G7P-BSxQIl2PocGUVe14c44,503
|
|
57
58
|
daktari/resources/mock_cert.pem,sha256=AIc9dZOVIuxm7KFLunP5WSA1-LDWLOwpfu48B9xQ_Wg,82
|
|
58
|
-
daktari-0.0.
|
|
59
|
-
daktari-0.0.
|
|
60
|
-
daktari-0.0.
|
|
61
|
-
daktari-0.0.
|
|
62
|
-
daktari-0.0.
|
|
63
|
-
daktari-0.0.
|
|
59
|
+
daktari-0.0.222.dist-info/LICENSE.txt,sha256=sMo18UdnQ7rY1SYg9gmop08ubzEQOGO1URYXu1Hxdx0,1051
|
|
60
|
+
daktari-0.0.222.dist-info/METADATA,sha256=C8Myzd0vFtsxOKhZv91eh8hXmtyZzd6tSipQyP1sjDQ,3844
|
|
61
|
+
daktari-0.0.222.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
62
|
+
daktari-0.0.222.dist-info/entry_points.txt,sha256=Sqwxp-qsyRnWwGVHkd3hoeG7aPffCIRB4pouCD9BbYU,51
|
|
63
|
+
daktari-0.0.222.dist-info/top_level.txt,sha256=LW6kawKAAyxUbGqpAbdedKRUyVy2DBzEZOalp0qDdF8,8
|
|
64
|
+
daktari-0.0.222.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|