Deployment related Fabric utilities
Project description
Tunic is a library built on Fabric for performing common tasks related to deploying a code base on multiple remote servers.
It’s designed so that you can make use of as much or as little of its functionality as you’d like, the choice is yours.
It only requires the Fabric library as a dependency and can be installed from the Python Package Index (PyPI) using the pip tool like so.
$ pip install tunic
You could then make use of it in your deploy process like so.
from fabric.api import task
from tunic.api import get_release_id, ReleaseManager, VirtualEnvInstallation
APP_BASE = '/srv/www/myapp'
@task
def deploy():
stop_my_app()
release = get_release_id()
installer = VirtualEnvInstaller(APP_BASE, ['myapp'])
release_manager = ReleaseManager(APP_BASE)
installer.install(release)
release_manager.set_current_release(release)
start_my_app()
The above snippet is just the start, take a look around the code base for more methods that can save you work in your deploy process.
Documentation
The latest documentation is available at http://tunic.readthedocs.org/en/latest/
Source
The source is available at https://github.com/tshlabs/tunic
Changes
The change log is available at http://tunic.readthedocs.org/en/latest/changes.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tunic-0.5.0.tar.gz
.
File metadata
- Download URL: tunic-0.5.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443e22398b8e4fa2b6f0ddf50ea666472451ac90664b2a0e5d6533857863a1bb |
|
MD5 | f58455b24a58d3db0d54a6626cb0a926 |
|
BLAKE2b-256 | 80daf61340a26ea5c417856df701790386bbc8c782363c35905433da94ca47ba |
File details
Details for the file tunic-0.5.0-py2-none-any.whl
.
File metadata
- Download URL: tunic-0.5.0-py2-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6d00aa522460a0640ea7cbec837ea31094004fda4709b02f87c65ec58414db |
|
MD5 | 8608a8e4b53f95efca00dd9bcb5255c6 |
|
BLAKE2b-256 | 8335fd28d484c163623f3fc99da3f21fc3b1d24c8345ad8c058aab96bfa0a397 |