Class: Pod::ArtSource
Overview
Subclass of Pod::Source to provide support for Artifactory Specs repositories
Instance Method Summary collapse
- #git? ⇒ Boolean
-
#initialize(repo, url) ⇒ ArtSource
constructor
A new instance of ArtSource.
- #old_url ⇒ Object
-
#url ⇒ Object
Url of this repo.
Constructor Details
#initialize(repo, url) ⇒ ArtSource
Returns a new instance of ArtSource.
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
27 28 29 |
# File 'lib/art_source.rb', line 27 def git? false end |
#old_url ⇒ Object
6 |
# File 'lib/art_source.rb', line 6 alias_method :old_url, :url |
#url ⇒ Object
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 |