Class: Pod::Command::IPC::List

Inherits:
IPC
  • Object
show all
Defined in:
lib/cocoapods/command/ipc/list.rb

Instance Method Summary collapse

Instance Method Details

#runObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/cocoapods/command/ipc/list.rb', line 18

def run
  require 'yaml'
  sets = config.sources_manager.aggregate.all_sets
  result = {}
  sets.each do |set|
    begin
      spec = set.specification
      result[spec.name] = {
        'authors' => spec.authors.keys,
        'summary' => spec.summary,
        'description' => spec.description,
        'platforms' => spec.available_platforms.map { |p| p.name.to_s },
      }
    rescue DSLError
      next
    end
  end
  output_pipe.puts result.to_yaml
end