SyntaxFix
Write A Post
Hire A Developer
Questions
I did at VagrantFile:
REMOTE_IP = %x{/usr/local/bin/vagrant ssh-config | /bin/grep -i HostName | /usr/bin/cut -d\' \' -f4} run "ping #{REMOTE_IP}"
As you can see, I used the "%x{}" ruby function.