envVagrant.sh 259 B

12345678
  1. #!/bin/bash
  2. # Run this like `. envVagrant.sh f38` before `mocha`
  3. # args:
  4. # $1: The Vagrant VM to test against. If blank and only one VM is provisioned, it will use that.
  5. export IP=$(vagrant ssh-config $1 | grep HostName | awk '{print $2}')
  6. export PORT=1337