Sha256: f27e28bd36b8c3c21da9892cc6dc5fa47115c5393add6e9a9ba89b6d441e4f89

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 Bytes

Contents

require_relative "executor/prebuilder"

module Pod
  class Command
    class Binary < Command
      class Prebuild < Binary
        self.arguments = [CLAide::Argument.new("CACHE-BRANCH", false)]
        def self.options
          [
            ["--push", "Push cache to repo upon completion"]
          ]
        end

        def initialize(argv)
          super
          @prebuilder = PodPrebuild::CachePrebuilder.new(
            config: prebuild_config,
            cache_branch: argv.shift_argument || "master",
            push_cache: argv.flag?("push")
          )
        end

        def run
          @prebuilder.run
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-binary-cache-0.1.2 lib/command/prebuild.rb
cocoapods-binary-cache-0.1.1 lib/command/prebuild.rb