lib/command/executor/base.rb in cocoapods-binary-cache-0.1.7 vs lib/command/executor/base.rb in cocoapods-binary-cache-0.1.8

- old
+ new

@@ -2,9 +2,16 @@ class CommandExecutor def initialize(options) @config = options[:config] end + def installer + @installer ||= begin + pod_config = Pod::Config.instance + Pod::Installer.new(pod_config.sandbox, pod_config.podfile, pod_config.lockfile) + end + end + def git(cmd, options = {}) comps = ["git"] comps << "-C" << @config.cache_path unless options[:cache_repo] == false comps << cmd comps << "&> /dev/null" if options[:ignore_output]