From 61c921ac6f2333292d8a2bbd4dec5dfb904f4c2a Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Tue, 24 Jul 2018 10:25:08 -0400 Subject: [PATCH] Use require_relative everywhere in plugin entry point --- lib/vagrant-lxc/plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vagrant-lxc/plugin.rb b/lib/vagrant-lxc/plugin.rb index 55bec55f..0bef51a8 100644 --- a/lib/vagrant-lxc/plugin.rb +++ b/lib/vagrant-lxc/plugin.rb @@ -10,7 +10,7 @@ class Plugin < Vagrant.plugin("2") EOF provider(:lxc, parallel: true, priority: 7) do - require File.expand_path("../provider", __FILE__) + require_relative 'provider' init! Provider end @@ -22,13 +22,13 @@ class Plugin < Vagrant.plugin("2") end config(:lxc, :provider) do - require File.expand_path("../config", __FILE__) + require_relative 'config' init! Config end synced_folder(:lxc) do - require File.expand_path("../synced_folder", __FILE__) + require_relative 'synced_folder' SyncedFolder end