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, GitHubDataProvider

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:



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

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:



48
49
50
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 48

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:



61
62
63
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 61

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:



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

def type
  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:



36
37
38
# File 'lib/cocoapods-core/source/abstract_data_provider.rb', line 36

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