部署/系统管理操作,由fabric提供支持
patchwork的Python项目详细描述
patchwork是unix系统管理原语的中级库,例如 作为“install package”或“create user account”,查询功能用于 自省系统状态,以及在 Fabric库。
具体来说:
主api调用力求是idempotent:它们可以被称为multiple 连续几次没有不需要的更改堆积或导致错误。
拼凑只是一个api:它没有“配方”、“清单”的概念, “阶级”、“角色”或其他高级组织单位。这是左上角 给用户或包装库。
它在shell调用中实现,通常通过ssh从 本地工作站。
- However, where possible, its functions expect a baseline Invoke ~invoke.context.Context object and can thus run locally or remotely, depending on the specific context supplied by the caller.