about summary refs log tree commit diff
path: root/vagrant/.vagrant/rgloader/loader.rb
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-30 17:58:04 +0200
committermakefunstuff <[email protected]>2024-06-30 17:58:04 +0200
commit78a3a7b751b5042b775dfbf3376362ce9729e5bb (patch)
tree802515693d3039df5f3f84729b3ec4ee61eea3af /vagrant/.vagrant/rgloader/loader.rb
parentcbfab9c28fb56ba9c13a574b0e69c8adba5e61c8 (diff)
downloadk3s-lab-78a3a7b751b5042b775dfbf3376362ce9729e5bb.tar.gz
more todos
Diffstat (limited to 'vagrant/.vagrant/rgloader/loader.rb')
-rw-r--r--vagrant/.vagrant/rgloader/loader.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/vagrant/.vagrant/rgloader/loader.rb b/vagrant/.vagrant/rgloader/loader.rb
new file mode 100644
index 0000000..b6c81bf
--- /dev/null
+++ b/vagrant/.vagrant/rgloader/loader.rb
@@ -0,0 +1,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