lib/vagrant/plugin/manager.rb
# This returns the list of plugins that should be enabled.
#
# @return [Hash]
This returns the list of plugins that should be enabled.
This returns the list of plugins that should be enabled .
def installed_plugins
        system = {}
        if @system_file
          @system_file.installed_plugins.each do |k, v|
            system[k] = v.merge("system" => true)
          end
        end
        plugin_list = Util::DeepMerge.deep_merge(system, @user_file.installed_plugins)
        Hash[
          plugin_list.map{|plugin_name, plugin_info|
            [plugin_name, plugin_info]
          }.sort_by(&:first)
        ]
      end
def installed_plugins system = { } if @system_file @system_file . installed_plugins . each do | k , v | system [ k ] = v . merge ( "system" => true ) end end plugin_list = Util :: DeepMerge . deep_merge ( system , @user_file . installed_plugins ) Hash [ plugin_list . map { | plugin_name , plugin_info | [ plugin_name , plugin_info ] } . sort_by ( & :first ) ] end
This returns the list of plugins that should be enabled.
This returns the list of plugins that should be enabled .
# Sort plugins by name
None
Hash