Sha256: 35275ab94939dadf8951ebcd39158c68feeef73d9d96095929ee895beb578c2e

Contents?: true

Size: 893 Bytes

Versions: 14

Compression:

Stored size: 893 Bytes

Contents

module Pod
  class Command
    class Trunk
      # @CocoaPods 0.33.0
      #
      class Info < Trunk
        self.summary = 'Returns information about a Pod.'
        self.arguments = [
          CLAide::Argument.new('NAME', true),
        ]

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

        def validate!
          super
          help! 'Please specify a pod name.' unless @name
        end

        def run
          response = json(request_path(:get, "pods/#{@name}", auth_headers))
          versions = response['versions'] || []
          owners = response['owners'] || []

          UI.title(@name) do
            UI.labeled 'Versions', versions.map { |v| "#{v['name']} (#{v['created_at']})" }
            UI.labeled 'Owners', owners.map { |o| "#{o['name']} <#{o['email']}>" }
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
cocoapods-trunk-1.6.0 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.5.0 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.4.1 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.4.0 lib/pod/command/trunk/info.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/cocoapods-trunk-1.3.1/lib/pod/command/trunk/info.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/cocoapods-trunk-1.3.1/lib/pod/command/trunk/info.rb
cocoapods-trunk-1.3.1 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.3.0 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.2.0 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.1.2 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.1.1 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.1.0 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.1.0.beta.1 lib/pod/command/trunk/info.rb
cocoapods-trunk-1.0.0 lib/pod/command/trunk/info.rb