class TimeAnalyzeConfig::PodInstall
Public Class Methods
after_all(total_time, detail, installer)
click to toggle source
do anything you want to do after pod install, for example, you can send the result to a server this method will be executed in the directory the `pod install` command called. @param total_time [Float] pod install total time, in second @param detail [Hash] analyze result in hash format, the key is the step name, value is the duration in second. @param installer [Pod::Installer] instance of Pod::Installer
of this install process
# File lib/cocoapods-time-analyze/template/cocoapods_time_analyze_config.rb, line 19 def self.after_all(total_time, detail, installer) # something awesome end
enable_local_summary()
click to toggle source
by default the plugin will generate a summary yaml file named pod-install-summary.yml under directory, you can use this method to override this behaviour
# File lib/cocoapods-time-analyze/template/cocoapods_time_analyze_config.rb, line 5 def self.enable_local_summary true end
target_steps()
click to toggle source
add the step you want to analyze to this method
# File lib/cocoapods-time-analyze/template/cocoapods_time_analyze_config.rb, line 10 def self.target_steps %w[] end