Sha256: 404b329037b4ab03cf77a2791b387a3ced5e7d0a9907e332b2bdebf520fa03c1

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

require 'pod/command/plugins_helper'

module Pod
  class Command
    class Plugins
      # The list subcommand. Used to list all known plugins
      #
      class List < Plugins
        self.summary = 'List all known plugins'
        self.description = <<-DESC
                List all known plugins (according to the list
                hosted on github.com/CocoaPods/cocoapods.org)
        DESC

        def self.options
          super.reject { |option, _| option == '--silent' }
        end

        def run
          plugins = PluginsHelper.known_plugins

          UI.title 'Available CocoaPods Plugins:' do
            plugins.each do |plugin|
              PluginsHelper.print_plugin plugin, self.verbose?
            end
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-plugins-0.2.0 lib/pod/command/plugins/list.rb
cocoapods-plugins-0.1.1 lib/pod/command/plugins/list.rb