Sha256: a478c550035e648a83fba5c001b6277bedba39b542ce0503addefb67a1583abe

Contents?: true

Size: 880 Bytes

Versions: 2

Compression:

Stored size: 880 Bytes

Contents

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
      #
      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
          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
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-plugins-0.3.1 lib/pod/command/plugins/list.rb
cocoapods-plugins-0.3.0 lib/pod/command/plugins/list.rb