Class: Pod::Downloader::Bazaar
- Inherits:
-
Base
- Object
- Base
- Pod::Downloader::Bazaar
show all
- Defined in:
- lib/cocoapods-downloader/bazaar.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/bazaar.rb', line 4
def self.options
[:revision, :tag]
end
|
Instance Method Details
#checkout_options ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/cocoapods-downloader/bazaar.rb', line 12
def checkout_options
Dir.chdir(target_path) do
options = {}
options[:bzr] = url
options[:revision] = `bzr revno`.chomp
options
end
end
|
#options_specific? ⇒ Boolean
8
9
10
|
# File 'lib/cocoapods-downloader/bazaar.rb', line 8
def options_specific?
!options[:revision].nil?
end
|