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

Inherits:
Pod::Command::IPC show all
Defined in:
lib/cocoapods/command/inter_process_communication.rb

Overview

———————————————————————–#

Instance Method Summary collapse

Methods inherited from Pod::Command::IPC

#output_pipe

Methods inherited from Pod::Command

#ensure_master_spec_repo_exists!, #initialize, options, report_error, run

Methods included from Pod::Config::Mixin

#config

Constructor Details

This class inherits a constructor from Pod::Command

Instance Method Details

#runObject



80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# File 'lib/cocoapods/command/inter_process_communication.rb', line 80

def run
  require 'yaml'
  sets = SourcesManager.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