Sha256: 06573d0a2175f2d7004446b0411e7456ee92aa4f450975c460cf485d1feb6fc6

Contents?: true

Size: 1 KB

Versions: 44

Compression:

Stored size: 1 KB

Contents

require 'cocoapods-tdfire-binary/binary_url_manager'

module Pod
	class Command
		class Binary < Command
			class Pull < Binary
				self.abstract_command = false
				self.summary = '下载二进制 zip 包'
				self.description = <<-DESC
					通过 NAME 和 VERSION ,下载二进制 zip 包
	      DESC

	      self.arguments = [
          CLAide::Argument.new('NAME', true),
          CLAide::Argument.new('VERSION', true)
        ]

        def initialize(argv)
        	@name = argv.shift_argument
        	@version = argv.shift_argument
        	super
        end

        def validate!
          super
          help! "必须提供有效组件名" if @name.nil?
          help! "必须提供有效版本号" if @version.nil?
        end

        def run
					UI.section("Tdfire: start pulling framework zip file ...") do
						UI.puts "Tdfire: get argvs: name -> #{@name}, version -> #{@version}"
						Pod::Tdfire::BinaryUrlManager.get_pull_url_for_pod_version(@name, @version)
					end
        end
			end
		end
	end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-2.0.9 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.8 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.7 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.6 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.5 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.4 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-2.0.3 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.30 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.29 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.28 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.26 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.25 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.24 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.23 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.22 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.21 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.20 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.19 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.4.18 lib/cocoapods-tdfire-binary/command/pull.rb
cocoapods-tdfire-binary-1.3.18 lib/cocoapods-tdfire-binary/command/pull.rb