From 6994f5d5a77a4efc57b82bf638128b2fe402bcff Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 25 May 2021 13:29:48 -0700 Subject: [PATCH] Start adding updates for remote environment in ruby runtime --- lib/vagrant/environment.rb | 2 ++ lib/vagrant/environment/remote.rb | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lib/vagrant/environment/remote.rb diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 733ed72ac..bff5b1c98 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -19,6 +19,8 @@ module Vagrant # etc. In day-to-day usage, every `vagrant` invocation typically # leads to a single Vagrant environment. class Environment + autoload :Remote, "vagrant/environment/remote" + # This is the current version that this version of Vagrant is # compatible with in the home directory. # diff --git a/lib/vagrant/environment/remote.rb b/lib/vagrant/environment/remote.rb new file mode 100644 index 000000000..158b32d28 --- /dev/null +++ b/lib/vagrant/environment/remote.rb @@ -0,0 +1,17 @@ +module Vagrant + class Environment + module Remote + + def self.prepended(klass) + klass.class_eval do + attr_reader :client + end + end + + def initialize(opts={}) + super + @client = opts[:client] + end + end + end +end