Sha256: 5be69c0595f4539233d435e80b6124c5176b8998a08a2877c3e317404a9a09c5

Contents?: true

Size: 804 Bytes

Versions: 11

Compression:

Stored size: 804 Bytes

Contents

require "fileutils"
require_relative "config"
require_relative "fetch"
require_relative "prebuild"
require_relative "push"
require_relative "visualize"

module Pod
  class Command
    class Binary < Command
      self.abstract_command = true
      def self.options
        [
          ["--repo", "Cache repo (in accordance with `cache_repo` in `config_cocoapods_binary_cache`)"]
        ]
      end

      def initialize(argv)
        super
        load_podfile
        update_cli_config(:repo => argv.option("repo"))
      end

      def prebuild_config
        @prebuild_config ||= PodPrebuild.config
      end

      def load_podfile
        Pod::Config.instance.podfile
      end

      def update_cli_config(options)
        PodPrebuild.config.cli_config.merge!(options)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
cocoapods-binary-cache-next-0.1.16 lib/command/binary.rb
cocoapods-binary-cache-next-0.1.15 lib/command/binary.rb
cocoapods-binary-ht-1.0.0 lib/command/binary.rb
cocoapods-binary-cache-0.1.14 lib/command/binary.rb
cocoapods-binary-cache-0.1.13 lib/command/binary.rb
cocoapods-binary-cache-0.1.12 lib/command/binary.rb
cocoapods-binary-cache-0.1.11 lib/command/binary.rb
cocoapods-binary-cache-0.1.10 lib/command/binary.rb
cocoapods-binary-cache-0.1.9 lib/command/binary.rb
cocoapods-binary-cache-0.1.8 lib/command/binary.rb
cocoapods-binary-cache-0.1.7 lib/command/binary.rb