Class: Pod::Command::Gen

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods-mtxx-bin/native/gen.rb

Instance Method Summary collapse

Instance Method Details

#old_runObject



8
# File 'lib/cocoapods-mtxx-bin/native/gen.rb', line 8

alias old_run run

#runObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/cocoapods-mtxx-bin/native/gen.rb', line 10

def run
  UI.puts "[pod gen] Running with #{configuration.to_s.gsub("\n", "         \n")}" if configuration.pod_config.verbose?

  # this is done here rather than in the installer so we only update sources once,
  # even if there are multiple podspecs
  update_sources if configuration.repo_update?

  installers = []
  Generate::PodfileGenerator.new(configuration).podfiles_by_spec.each do |spec, podfile|
    installer = Generate::Installer.new(configuration, spec, podfile).install!
    installers << installer
  end

  remove_warnings(UI.warnings)

  installers
end