vagrant/plugins/commands/plugin/action/list_plugins.rb

26 lines
459 B
Ruby
Raw Normal View History

2013-02-03 07:52:34 +00:00
require "rubygems"
module VagrantPlugins
module CommandPlugin
module Action
class ListPlugins
def initialize(app, env)
@app = app
end
def call(env)
env[:gem_helper].with_environment do
specs = Gem::Specification.find_all
specs.each do |spec|
env[:ui].info spec.name
end
end
@app.call(env)
end
end
end
end
end