Class: Pod::Source::AbstractDataProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-core/source/abstract_data_provider.rb

Overview

Defines the required and the optional methods of a data provider.

Direct Known Subclasses

FileSystemDataProvider

Required methods collapse

Instance Method Details

#nameString

Returns The name of the source.

Returns:

  • (String)

    The name of the source.

Raises:



13
14
15
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 13

def name
  raise StandardError, 'Abstract method.'
end

#podsArray<String>

Returns The list of the name of all the Pods known to the Source.

Returns:

  • (Array<String>)

    The list of the name of all the Pods known to the Source.

Raises:



32
33
34
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 32

def pods
  raise StandardError, 'Abstract method.'
end

#specification(_name, _version) ⇒ Specification

Returns The specification for a given version of a Pod.

Parameters:

  • name (String)

    The name of the Pod.

  • version (String)

    The version of the Pod.

Returns:

  • (Specification)

    The specification for a given version of a Pod.

Raises:



54
55
56
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 54

def specification(_name, _version)
  raise StandardError, 'Abstract method.'
end

#specification_contents(_name, _version) ⇒ Specification

Returns The contents of the specification for a given version of a Pod.

Parameters:

  • name (String)

    the name of the Pod.

  • version (String)

    the version of the Pod.

Returns:

  • (Specification)

    The contents of the specification for a given version of a Pod.

Raises:



67
68
69
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 67

def specification_contents(_name, _version)
  raise StandardError, 'Abstract method.'
end

#typeString

Returns The user friendly type of the source.

Returns:

  • (String)

    The user friendly type of the source.

Raises:



25
26
27
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 25

def type
  raise StandardError, 'Abstract method.'
end

#urlString

Returns The URL of the source.

Returns:

  • (String)

    The URL of the source.

Raises:



19
20
21
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 19

def url
  raise StandardError, 'Abstract method.'
end

#versions(_name) ⇒ Array<String>

Returns All the available versions of a given Pod, sorted from highest to lowest.

Parameters:

  • name (String)

    The name of the Pod.

Returns:

  • (Array<String>)

    All the available versions of a given Pod, sorted from highest to lowest.

Raises:



42
43
44
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 42

def versions(_name)
  raise StandardError, 'Abstract method.'
end