mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Add class level storage for remote manager client
This commit is contained in:
parent
55fb52f174
commit
070292fb3b
1 changed files with 5 additions and 2 deletions
|
|
@ -7,6 +7,10 @@ module Vagrant
|
|||
# as provides methods that allow querying all registered components of
|
||||
# those plugins as a single unit.
|
||||
class Manager
|
||||
class << self
|
||||
attr_accessor :client
|
||||
end
|
||||
|
||||
WRAPPER_CLASS = proc do |klass|
|
||||
class << klass
|
||||
attr_accessor :plugin_name, :type
|
||||
|
|
@ -66,8 +70,7 @@ module Vagrant
|
|||
end
|
||||
|
||||
def plugin_manager
|
||||
info = Thread.current.thread_variable_get(:service_info)
|
||||
info.plugin_manager if info
|
||||
self.class.client
|
||||
end
|
||||
|
||||
# Synced folder plugins are registered with an integer priority, but in
|
||||
|
|
|
|||
Loading…
Reference in a new issue