Class: PodPrebuild::CacheFetcher

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CommandExecutor

#git, #git_clone, #installer

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(options)
  super(options)
  @cache_branch = options[:cache_branch]
end

Instance Attribute Details

#cache_branchObject (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

#runObject



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