Better lock messages

- Debug verbosity commands
- Show lock status when we fail to acquire it
- Include lock acquire/release in runtime
This commit is contained in:
Donal McBreen
2023-05-09 14:17:58 +01:00
parent e9d838ec46
commit 5d33fb6c33
5 changed files with 37 additions and 27 deletions

View File

@@ -8,6 +8,10 @@ class SSHKit::Backend::Abstract
capture(*args, **kwargs, verbosity: Logger::INFO)
end
def capture_with_debug(*args, **kwargs)
capture(*args, **kwargs, verbosity: Logger::DEBUG)
end
def capture_with_pretty_json(*args, **kwargs)
JSON.pretty_generate(JSON.parse(capture(*args, **kwargs)))
end