Sha256: 4c1bec59f2b8c0f79a3c917aa1ac4e9f228ccad4560c8e88e6db80b22b2a40cc
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 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] cmd = comps.join(" ") raise "Fail to run command '#{cmd}'" unless system(cmd) end def git_clone(cmd, options = {}) git("clone #{cmd}", options.merge(:cache_repo => false)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-binary-cache-0.1.10 | lib/command/executor/base.rb |
cocoapods-binary-cache-0.1.9 | lib/command/executor/base.rb |