Class: PodPrebuild::CacheFetcher

Inherits:
CommandExecutor show all
Defined in:
lib/command/executor/fetcher.rb

Instance Method Summary collapse

Methods inherited from CommandExecutor

#git, #git_clone

Constructor Details

#initialize(options) ⇒ CacheFetcher

Returns a new instance of CacheFetcher.



6
7
8
9
# File 'lib/command/executor/fetcher.rb', line 6

def initialize(options)
  super(options)
  @cache_branch = options[:cache_branch]
end

Instance Method Details

#runObject



11
12
13
14
15
16
# File 'lib/command/executor/fetcher.rb', line 11

def run
  Pod::UI.step("Fetching cache") do
    fetch_cache(@config.cache_repo, @cache_branch, @config.cache_path)
    unzip_cache
  end
end