Sha256: 4756a8de39656e3d9bf7b978db3d5951c0e010e66b3367a39ba6d92cfe042604
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
command :'profiles:list' do |c| c.syntax = 'ios profiles:list [development|distribution]' c.summary = 'Lists the Provisioning Profiles' c.description = '' c.action do |args, options| type = args.first.downcase.to_sym rescue nil profiles = try{agent.list_profiles(type ||= :development)} say_warning "No #{type} provisioning profiles found." and abort if profiles.empty? table = Terminal::Table.new do |t| t << ["Profile", "App ID", "Status"] t.add_separator profiles.each do |profile| status = case profile.status when "Invalid" profile.status.red else profile.status.green end t << [profile.name, profile.app_id, status] end end puts table end end alias_command :profiles, :'profiles:list'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cupertino-0.3.3 | ./lib/cupertino/provisioning_portal/commands/profiles.rb |