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