Sha256: 0e57b8aa494d1f5a2a2b84011ea020603aed7e0ca67307af1838f39b1c8c2509

Contents?: true

Size: 810 Bytes

Versions: 23

Compression:

Stored size: 810 Bytes

Contents

require 'json'
require 'cocoapods-tdfire-binary/binary_url_manager'

module Pod
  class Command
    class Binary < Command
      class List < Binary

        self.abstract_command = false
        self.summary = '查看所有二进制版本信息'
        self.description = <<-DESC
					查看所有二进制版本信息
        DESC

        def initialize(argv)
          super
        end

        def validate!
          super
        end

        def run
          result = Pod::Tdfire::BinaryUrlManager.list_binary
          pods = JSON.parse(result) unless result.nil?
          pods ||= []

          pods.sort.each do |pod, versions|
            UI.puts "  #{pod + " " + versions.last}\n"
          end

          UI.puts "\n#{pods.keys.count} pods were found"
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
cocoapods-tdfire-binary-1.4.20 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.4.19 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.4.18 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.18 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.17 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.16 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.14 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.13 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.12 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.11 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.10 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.9 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.8 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.7 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.3.6 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.2.6 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.2.5 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.2.4 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.2.3 lib/cocoapods-tdfire-binary/command/list.rb
cocoapods-tdfire-binary-1.2.2 lib/cocoapods-tdfire-binary/command/list.rb