Collect push_configs in the Plugin Manager

This commit is contained in:
Seth Vargo 2014-10-24 15:45:33 -04:00
parent 413565f961
commit e5b10aa86b
1 changed files with 11 additions and 0 deletions

View File

@ -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]