()
Run commands using vagrant
Run commands using vagrant
Run commands using vagrant
def vagrant():
    """
    Run commands using vagrant
    """
    vc = get_vagrant_config()
    # change from the default user to 'vagrant'
    env.user = vc['User']
    # connect to the port-forwarded ssh
    env.hosts = ['%s:%s' % (vc['HostName'], vc['Port'])]
    # use vagrant ssh key
    env.key_filename = vc['IdentityFile'].strip('"')
    # Forward the agent if specified:
    env.forward_agent = vc.get('ForwardAgent', 'no') == 'yes'
def vagrant ( ) : vc = get_vagrant_config ( ) # change from the default user to 'vagrant' env . user = vc [ 'User' ] # connect to the port-forwarded ssh env . hosts = [ '%s:%s' % ( vc [ 'HostName' ] , vc [ 'Port' ] ) ] # use vagrant ssh key env . key_filename = vc [ 'IdentityFile' ] . strip ( '"' ) # Forward the agent if specified: env . forward_agent = vc . get ( 'ForwardAgent' , 'no' ) == 'yes'