Created
May 4, 2018 15:17
-
-
Save boxrick/3b45b67479c6985c4be70e2d55797f39 to your computer and use it in GitHub Desktop.
Remote Vagrantfile example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'openssl' | |
url = 'https://remote.vagranturi/vagrantfile' | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE | |
download = open(url) | |
IO.copy_stream(download, '.downloaded.vagrantfile') | |
eval File.read(".downloaded.vagrantfile") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment