Class: PodPrebuild::CachePrebuilder
Instance Method Summary
collapse
#git, #git_clone, #installer
Constructor Details
7
8
9
10
11
12
13
|
# File 'lib/command/executor/prebuilder.rb', line 7
def initialize(options)
super(options)
@cache_branch = options[:cache_branch]
@push_cache = options[:push_cache]
@fetcher = PodPrebuild::CacheFetcher.new(options)
@pusher = PodPrebuild::CachePusher.new(options)
end
|
Instance Method Details
#run ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/command/executor/prebuilder.rb', line 15
def run
@fetcher.run
prebuild
changes = PodPrebuild::JSONFile.new(@config.prebuild_delta_path)
return if changes.empty?
sync_cache(changes)
@pusher.run if @push_cache
end
|