Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

rehab-0.1.tar.gz (24.3 kB view details)

Uploaded Source

File details

Details for the file rehab-0.1.tar.gz.

File metadata

  • Download URL: rehab-0.1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rehab-0.1.tar.gz
Algorithm Hash digest
SHA256 4466325f924733704a01611e030e1314d0c674784c8193a4a59f8922e8538111
MD5 442b449067dfb4da71aeb7bf769f2a83
BLAKE2b-256 a6a2021b318430055f1f3301cac9899fac907294e180b07e37edd49bf6be6d52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page