about summary refs log tree commit diff
path: root/vagrant/.vagrant/rgloader/loader.rb
blob: b6c81bf31b9ed39d59cd7f3fa13dc7bbd3a5b07c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

# This file loads the proper rgloader/loader.rb file that comes packaged
# with Vagrant so that encoded files can properly run with Vagrant.

if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
  require File.expand_path(
    "rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
else
  raise "Encoded files can't be read outside of the Vagrant installer."
end