Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

UNKNOWN

Project Description

rehab is a very simple tool, that runs a set of commands only if a given file has been changed since the last run

install

only:

pip install rehab

configuration

crate a configuration file:

# 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))

and call:

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

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
rehab-0.1.tar.gz (24.3 kB) Copy SHA256 Checksum SHA256 Source Mar 14, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting