NixOS/charon — pull request #48 by shlevy (2012-07-27 12:37:34+00:00)
Title: 'with'able deployment

Lock and load the state file on __enter__ and unlock on __exit__.

Now actions which need to be done with the state file locked should use with depl:, and
actions which don't need to manually call depl.load_state()