loader.rb 423 B

123456789101112
  1. # Copyright (c) HashiCorp, Inc.
  2. # SPDX-License-Identifier: BUSL-1.1
  3. # This file loads the proper rgloader/loader.rb file that comes packaged
  4. # with Vagrant so that encoded files can properly run with Vagrant.
  5. if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
  6. require File.expand_path(
  7. "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
  8. else
  9. raise "Encoded files can't be read outside of the Vagrant installer."
  10. end