Method: Pod::Source::HealthReporter::HealthReport#add_message

Defined in:
lib/cocoapods-core/source/health_reporter.rb

#add_message(type, message, spec_name, spec_version = nil) ⇒ void

This method returns an undefined value.

Adds a message with the given type for the specification with the given name and version.

Parameters:

  • type (Symbol)

    The type of message. Either :error or :warning.

  • message (String)

    The contents of the message.

  • spec_name (String)

    The name of the Pod.

  • spec_version (String) (defaults to: nil)

    The version of the specification.



181
182
183
184
185
186
# File 'lib/cocoapods-core/source/health_reporter.rb', line 181

def add_message(type, message, spec_name, spec_version = nil)
  pods = send(:"pods_by_#{type}")
  pods[message] ||= {}
  pods[message][spec_name] ||= []
  pods[message][spec_name] << spec_version
end