From e5b10aa86bfa7d413cacd2ff630ac137dff4c370 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Fri, 24 Oct 2014 15:45:33 -0400 Subject: [PATCH] Collect push_configs in the Plugin Manager --- lib/vagrant/plugin/v2/manager.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/vagrant/plugin/v2/manager.rb b/lib/vagrant/plugin/v2/manager.rb index d8f5296db..ce76d1fc1 100644 --- a/lib/vagrant/plugin/v2/manager.rb +++ b/lib/vagrant/plugin/v2/manager.rb @@ -183,6 +183,17 @@ module Vagrant end end + # This returns all the config classes for the various pushes. + # + # @return [Registry] + def push_configs + Registry.new.tap do |result| + @registered.each do |plugin| + result.merge!(plugin.components.configs[:push]) + end + end + end + # This returns all synced folder implementations. # # @return [Registry]