Skip to content

Instantly share code, notes, and snippets.

@boxrick
Created May 4, 2018 15:17
Show Gist options
  • Save boxrick/3b45b67479c6985c4be70e2d55797f39 to your computer and use it in GitHub Desktop.
Save boxrick/3b45b67479c6985c4be70e2d55797f39 to your computer and use it in GitHub Desktop.
Remote Vagrantfile example
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