Class: Pod::Command::Plugins::Installed

Inherits:
Pod::Command::Plugins show all
Defined in:
lib/pod/command/plugins/installed.rb

Overview

The ‘installed` subcommand. Used to list all installed plugins.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.optionsObject



15
16
17
18
19
# File 'lib/pod/command/plugins/installed.rb', line 15

def self.options
  # Silent mode is meaningless for this command as
  # the command only purpose is to print information
  super.reject { |option, _| option == '--silent' }
end

Instance Method Details

#runObject



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/pod/command/plugins/installed.rb', line 21

def run
  plugins = CLAide::Command::PluginManager.specifications

  UI.title 'Installed CocoaPods Plugins:' do
    if verbose?
      print_verbose_list(plugins)
    else
      print_compact_list(plugins)
    end
  end
end