Sha256: 4709cbaf9650160f150b76acd4ae0f340e357408c1369a24200cef40f0538890

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

require_relative "base"

module PodPrebuild
  class CachePusher < CommandExecutor
    def initialize(options)
      super(options)
      @cache_branch = options[:cache_branch]
    end

    def run
      Pod::UI.step("Pushing cache") do
        commit_message = "Update prebuilt cache".shellescape
        git("add .")
        git("commit -m '#{commit_message}'")
        git("push origin #{@cache_branch}")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.9 lib/command/executor/pusher.rb
cocoapods-binary-cache-0.1.8 lib/command/executor/pusher.rb
cocoapods-binary-cache-0.1.7 lib/command/executor/pusher.rb
cocoapods-binary-cache-0.1.6 lib/command/executor/pusher.rb
cocoapods-binary-cache-0.1.5 lib/command/executor/pusher.rb