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