Run the following tasks on a vagrant box.
First, you need to import this task in your fabfile.py:
from fabric.api import *
from fabtools.vagrant import vagrant
@task
def some_task():
run('echo hello')
Then you can easily run tasks on your current Vagrant box:
$ fab vagrant some_task
Get the SSH parameters for connecting to a vagrant VM.
Run the following tasks on a vagrant box.
First, you need to import this task in your fabfile.py:
from fabric.api import *
from fabtools.vagrant import vagrant
@task
def some_task():
run('echo hello')
Then you can easily run tasks on your current Vagrant box:
$ fab vagrant some_task