Class: Pod::ArtSource

Inherits:
Source
  • Object
show all
Defined in:
lib/art_source.rb

Overview

Subclass of Pod::Source to provide support for Artifactory Specs repositories

Instance Method Summary collapse

Constructor Details

#initialize(repo, url) ⇒ ArtSource

Returns a new instance of ArtSource.

Parameters:

  • repo (String)

    The name of the repository

  • url (String)

    see #url



12
13
14
15
# File 'lib/art_source.rb', line 12

def initialize(repo, url)
  super(repo)
  @source_url = url
end

Instance Method Details

#git?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/art_source.rb', line 27

def git?
  false
end

#old_urlObject



6
# File 'lib/art_source.rb', line 6

alias_method :old_url, :url

#urlObject

Returns url of this repo.

Returns:

  • url of this repo



18
19
20
21
22
23
24
25
# File 'lib/art_source.rb', line 18

def url
  if @source_url
    "#{@source_url}"
  else
    # after super(repo) repo is now the path to the repo
    File.read("#{repo}/.artpodrc") if File.exist?("#{dir}/.artpodrc")
  end
end