Class: CocoapodsPodinstallocaldepencencies::Podinstallocaldepencencies
- Inherits:
-
Object
- Object
- CocoapodsPodinstallocaldepencencies::Podinstallocaldepencencies
- Defined in:
- lib/cocoapods-podInstalLocalDepencencies/podInstalLocalDepencencies-preconfigDependencies.rb
Instance Method Summary collapse
Instance Method Details
#configPreInstall(local_dependencies) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/cocoapods-podInstalLocalDepencencies/podInstalLocalDepencencies-preconfigDependencies.rb', line 5 def configPreInstall(local_dependencies) local_dependencies.each do |podname, path| Pod::UI.puts "Installing #{podname} dependencies...".green instalation = system("pod install --project-directory=#{path}") if !instalation abort("Error on #{podname} instalation".red) end end end |
#configPreUpdate(local_dependencies) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/cocoapods-podInstalLocalDepencencies/podInstalLocalDepencencies-preconfigDependencies.rb', line 15 def configPreUpdate(local_dependencies) local_dependencies.each do |podname, path| Pod::UI.puts "Updating #{podname} dependencies...".green upgrade = system("pod update --no-repo-update --project-directory=#{path}") if !upgrade abort("Error on #{podname} instalation".red) end end end |