跳转到主要内容

未知

项目描述

rehab是一个非常简单的工具,它只在给定文件自上次运行以来已更改时运行一组命令

安装

pip install rehab

配置

创建配置文件

# basic rehab configuration, default values will be pretty similar
EXAMPLE_CONFIG = {
    # where your repositories will checkout to
    'repodir': '/var/repos/',

    # list of repositories: type, name and other params
    'repositories': [
        ['git', 'git@github.com:kvbik/rehab.git', 'master'],
    ],

    # run commands for each file which has changed since the last run
    'updatehooks': {
        'git@github.com:kvbik/rehab.git': [
            ['requirements.txt', 'pip install -r requirements.txt'],
            ['requirements.txt', 'python setup.py develop'],
            ['setup.py', 'python setup.py develop'],
        ],
    },
}

import yaml
with open('/etc/my-rehab.yml', 'w') as f:
  f.write(yaml.dump(EXAMPLE_CONFIG))

并调用

rehab update -c /etc/my-rehab.yml -d /var/my-rehab.yml

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

rehab-0.1.tar.gz (24.3 kB 查看哈希值)

上传时间:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面