Improved deploy lock acquisition

1. Don't raise lock error for non-lock issues during lock acquire
  (see https://github.com/mrsked/mrsk/pull/181)
2. If there is an error while the lock is held, don't release the lock
  and send a warning to stderr
This commit is contained in:
Donal McBreen
2023-04-10 15:08:48 +01:00
parent fb1718ca6d
commit c4df440c79
5 changed files with 55 additions and 8 deletions

View File

@@ -22,4 +22,8 @@ class CliTestCase < ActiveSupport::TestCase
def stdouted
capture(:stdout) { yield }.strip
end
end
def stderred
capture(:stderr) { yield }.strip
end
end