Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

A collection of fabric tasks for package management

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.txt
Notifications You must be signed in to change notification settings

krux/fabric-package-management

 
 

Deprecated and no longer in use or being maintained.

This repo exists as a historical archive.

fabric-package-management

As the name implies, fabric-package-management is a collection of Fabric tasks for package management. There's nothing too fancy going on here. It's aim is to simply not have to copy and paste similar convenience functions into many a Fabfile.

Build Status docs codecov

Example:

#!/usr/bin/python

from fabric.api import task, prompt, env
from fabric.context_managers import cd
from fabric.operations import reboot

from fabric_package_managment import apt

@task()
def run():
    apt.update()
    apt.upgrade()
    apt.install(['bpython', 'git'])
    with cd('/tmp'):
        apt.source("python-libcloud", download_only=True)
    apt.remove('bpython', purge=True)
    apt.autoremove()
    apt.autoclean()
    if apt.reboot_required():
        prompt("Reboot required. Initiate now?\nYes/No?",
            "response",
            default="No",
            validate=r'yes|Yes|YES|no|No|NO')
        if env.response.lower() == "yes":
            reboot()

About

A collection of fabric tasks for package management

Topics

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.txt

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%