commands/plugin: list plugins uses Bundler
This commit is contained in:
parent
8450f20e87
commit
ae17dc09eb
|
@ -1,4 +1,3 @@
|
||||||
require "rubygems"
|
|
||||||
require "set"
|
require "set"
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
|
@ -23,8 +22,7 @@ module VagrantPlugins
|
||||||
# Go through the plugins installed in this environment and
|
# Go through the plugins installed in this environment and
|
||||||
# get the latest version of each.
|
# get the latest version of each.
|
||||||
installed_map = {}
|
installed_map = {}
|
||||||
env[:gem_helper].with_environment do
|
Bundler.load.specs.each do |spec|
|
||||||
Gem::Specification.find_all.each do |spec|
|
|
||||||
# Ignore specs that aren't in our installed list
|
# Ignore specs that aren't in our installed list
|
||||||
next if !installed.include?(spec.name)
|
next if !installed.include?(spec.name)
|
||||||
|
|
||||||
|
@ -35,7 +33,6 @@ module VagrantPlugins
|
||||||
|
|
||||||
installed_map[spec.name] = spec
|
installed_map[spec.name] = spec
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
# Output!
|
# Output!
|
||||||
if installed_map.empty?
|
if installed_map.empty?
|
||||||
|
|
Loading…
Reference in New Issue