Module: CocoapodsSourceFix::Logger
- Defined in:
- lib/cocoapods-source-fix/logger.rb
Overview
统一日志出口,参照 cocoapods-user-defined-build-types 风格: Pod::UI.puts "🛠️ [cocoapods-user-defined-build-types] patching build types...".blue
Class Method Summary collapse
Class Method Details
.info(msg) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cocoapods-source-fix/logger.rb', line 7 def self.info(msg) line = "🛠️ [#{PLUGIN_NAME}] #{msg}" if defined?(Pod) && defined?(Pod::UI) begin Pod::UI.puts line.blue rescue StandardError Pod::UI.puts line end else Kernel.puts line end end |