Sha256: e4c88095b264ad8a615a02d4e866892be1aae7c3453493bc14c481d18c6a0f68

Contents?: true

Size: 780 Bytes

Versions: 19

Compression:

Stored size: 780 Bytes

Contents

require "fileutils"
require_relative "config"
require_relative "fetch"
require_relative "prebuild"
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

19 entries across 19 versions & 1 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.19 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.18 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.17 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.16 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.15 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.14 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.13 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.12 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.11 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.10 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.9 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.8 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.7 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.6 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.5 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.4 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.3 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.2 lib/command/binary.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/command/binary.rb