Class: Pod::Downloader::Mercurial
- Defined in:
- lib/cocoapods-downloader/mercurial.rb
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
#download, #download_head, executable, #head_supported?, #initialize, #name, preprocess_options
Methods included from APIExposable
Constructor Details
This class inherits a constructor from Pod::Downloader::Base
Class Method Details
.options ⇒ Object
4 5 6 |
# File 'lib/cocoapods-downloader/mercurial.rb', line 4 def self. [: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 Dir.chdir(target_path) do = {} [:hg] = url [:revision] = `hg --debug id -i`.chomp end end |
#options_specific? ⇒ Boolean
8 9 10 |
# File 'lib/cocoapods-downloader/mercurial.rb', line 8 def !([:revision] || [:tag]).nil? end |