Skip to content

Instantly share code, notes, and snippets.

View craigafinch's full-sized avatar

Craig Finch craigafinch

View GitHub Profile
@craigafinch
craigafinch / fabfile.py
Last active September 25, 2017 10:01 — forked from alexaivars/fabfile.py
Use fabric with a vagrant instance
from fabric.api import env, local, run
def vagrant():
"""USAGE:
fab vagrant uname
Note that the command to run Fabric might be different on different
platforms.
"""
# change from the default user to 'vagrant'