lib/pod/command/plugins/list.rb in cocoapods-plugins-0.2.0 vs lib/pod/command/plugins/list.rb in cocoapods-plugins-0.3.0
- old
+ new
@@ -1,6 +1,7 @@
require 'pod/command/plugins_helper'
+require 'pod/command/gem_helper'
module Pod
class Command
class Plugins
# The list subcommand. Used to list all known plugins
@@ -16,9 +17,10 @@
super.reject { |option, _| option == '--silent' }
end
def run
plugins = PluginsHelper.known_plugins
+ GemHelper.download_and_cache_specs if self.verbose?
UI.title 'Available CocoaPods Plugins:' do
plugins.each do |plugin|
PluginsHelper.print_plugin plugin, self.verbose?
end