Sha256: 219847d5b1f7b9d923cd2f0ec977d62c78f9b44af1fa04d24be758aa84bc1c7b
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
module PodPrebuild 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] comps << "|| true" if options[:can_fail] `#{comps.join(" ")}` end def git_clone(cmd, options = {}) git("clone #{cmd}", options.merge(:cache_repo => false)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-binary-cache-0.1.8 | lib/command/executor/base.rb |