pullup 0.0.11__tar.gz → 0.0.12__tar.gz
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.
- {pullup-0.0.11 → pullup-0.0.12}/PKG-INFO +1 -1
- {pullup-0.0.11 → pullup-0.0.12}/pullup/__init__.py +1 -1
- {pullup-0.0.11 → pullup-0.0.12}/pullup/env.py +6 -4
- {pullup-0.0.11 → pullup-0.0.12}/.gitignore +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/LICENSE +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/README.md +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/_modidx.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/deploy.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/drive.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/infra.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/pipeline.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/project.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/stack.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/wfbuild.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pullup/workflows.py +0 -0
- {pullup-0.0.11 → pullup-0.0.12}/pyproject.toml +0 -0
|
@@ -89,14 +89,16 @@ class EnvStore:
|
|
|
89
89
|
else _call(env_get, key, path=self.path))
|
|
90
90
|
return stored or os.environ.get(key) or ''
|
|
91
91
|
def set(self, key, value, secret=True):
|
|
92
|
-
"Store one value: a secret
|
|
92
|
+
"Store one value: a secret where dockeasy keeps secrets, anything else in the env file. Say where a secret went."
|
|
93
93
|
key = str(key or '').strip()
|
|
94
94
|
if not key: raise EnvError('a key is required')
|
|
95
95
|
if not str(value): raise EnvError(f'{key} needs a value')
|
|
96
96
|
env_get, env_set, secret_get, secret_set = _dockeasy()
|
|
97
|
-
if secret:
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
if not secret:
|
|
98
|
+
_call(env_set, key, str(value), path=self.path)
|
|
99
|
+
return {'key': key, 'secret': False}
|
|
100
|
+
went = _call(secret_set, key, str(value), service=self.service, path=self.path)
|
|
101
|
+
return {'key': key, 'secret': True, **(went if isinstance(went, dict) else {})}
|
|
100
102
|
def unset(self, key):
|
|
101
103
|
"Remove a value from the keychain, the env file and `os.environ`, and say which of the first two held it."
|
|
102
104
|
from dockeasy.core import FASTOPS_ENV
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|