lib/command/binary.rb in cocoapods-binary-cache-0.1.6 vs lib/command/binary.rb in cocoapods-binary-cache-0.1.7

- old
+ new

@@ -7,12 +7,31 @@ module Pod class Command class Binary < Command self.abstract_command = true + def self.options + [ + ["--repo", "Cache repo (in accordance with `cache_repo` in `config_cocoapods_binary_cache`)"] + ] + end + def initialize(argv) + super + load_podfile + update_cli_config(:repo => argv.option("repo")) + end + def prebuild_config - @prebuild_config ||= PodPrebuild::Config.instance + @prebuild_config ||= PodPrebuild.config + end + + def load_podfile + Pod::Config.instance.podfile + end + + def update_cli_config(options) + PodPrebuild.config.cli_config.merge!(options) end end end end