Class: Pod::Downloader::Mercurial
- Inherits:
-
Base
- Object
- Base
- Pod::Downloader::Mercurial
show all
- Defined in:
- lib/cocoapods-downloader/mercurial.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #target_path, #url
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#download, #download_head, executable, #head_supported?, #initialize, #name, preprocess_options, user_agent_string
#expose_api
Class Method Details
.options ⇒ Object
4
5
6
|
# File 'lib/cocoapods-downloader/mercurial.rb', line 4
def self.options
[:revision, :tag, :branch]
end
|
Instance Method Details
#checkout_options ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/cocoapods-downloader/mercurial.rb', line 12
def checkout_options
Dir.chdir(target_path) do
options = {}
options[:hg] = url
options[:revision] = `hg --debug id -i`.chomp
options
end
end
|
#options_specific? ⇒ Boolean
8
9
10
|
# File 'lib/cocoapods-downloader/mercurial.rb', line 8
def options_specific?
!(options[:revision] || options[:tag]).nil?
end
|