Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
script_defs: open state files and deployments with a context manager #1263
Use context managers to open and manage statefiles and deployments. This lets us do some fancier things with those state files. For example, storing the state other places.
This change is almost entirely whitespace. Check it out without whitespace in the diff: https://github.com/NixOS/nixops/pull/1263/files?w=1
Also consider looking commit-by-commit, which makes it easier, I think, to review.
Here is a diff adding state backends using this: legacy, in-memory, and s3: https://github.com/grahamc/nixops/compare/context-manager...grahamc:context-manager-states-rebase?expand=1