require_relative "executor/prebuilder" require_relative "../cocoapods-binary-cache/pod-binary/prebuild_dsl" module Pod class Command class Binary < Command class Prebuild < Binary self.arguments = [CLAide::Argument.new("CACHE-BRANCH", false)] def self.options [ ["--push", "Push cache to repo upon completion"] ] end def initialize(argv) super @prebuilder = PodPrebuild::CachePrebuilder.new( config: prebuild_config, cache_branch: argv.shift_argument || "master", push_cache: argv.flag?("push") ) end def run Pod::Podfile::DSL.prebuild_job = true @prebuilder.run end end end end end