Sha256: 10c438e144df89c83855c3052a8857a9324401033f9a0590c2df682111de6685
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 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 = 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
4 entries across 4 versions & 1 rubygems