Sha256: 0bd1565f63dea170a5eb9506b4f70cecfa4dd9f96b6be29da2daa2b24eee8b34

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

module PodPrebuild
  class CommandExecutor
    def initialize(options)
      @config = options[:config]
    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

6 entries across 6 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.7 lib/command/executor/base.rb
cocoapods-binary-cache-0.1.6 lib/command/executor/base.rb
cocoapods-binary-cache-0.1.5 lib/command/executor/base.rb
cocoapods-binary-cache-0.1.3 lib/command/executor/base.rb
cocoapods-binary-cache-0.1.2 lib/command/executor/base.rb
cocoapods-binary-cache-0.1.1 lib/command/executor/base.rb