Class: PodPrebuild::CacheFetcher
- Inherits:
-
CommandExecutor
- Object
- CommandExecutor
- PodPrebuild::CacheFetcher
- Defined in:
- lib/command/executor/fetcher.rb
Instance Attribute Summary collapse
-
#cache_branch ⇒ Object
readonly
Returns the value of attribute cache_branch.
Instance Method Summary collapse
-
#initialize(options) ⇒ CacheFetcher
constructor
A new instance of CacheFetcher.
- #run ⇒ Object
Methods inherited from CommandExecutor
Constructor Details
#initialize(options) ⇒ CacheFetcher
Returns a new instance of CacheFetcher.
8 9 10 11 |
# File 'lib/command/executor/fetcher.rb', line 8 def initialize() super() @cache_branch = [:cache_branch] end |
Instance Attribute Details
#cache_branch ⇒ Object (readonly)
Returns the value of attribute cache_branch.
6 7 8 |
# File 'lib/command/executor/fetcher.rb', line 6 def cache_branch @cache_branch end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 |
# File 'lib/command/executor/fetcher.rb', line 13 def run Pod::UI.step("Fetching cache") do fetch_cache(@config.cache_repo, @cache_branch, @config.cache_path) unzip_cache end end |