./lib/cupertino/provisioning_portal/commands/profiles.rb in cupertino-0.9.1 vs ./lib/cupertino/provisioning_portal/commands/profiles.rb in cupertino-0.9.2

- old
+ new

@@ -1,11 +1,11 @@ command :'profiles:list' do |c| c.syntax = 'ios profiles:list' c.summary = 'Lists the Provisioning Profiles' c.description = '' - c.option '--type [TYPE]', [:development, :distribution], "Type of profile (defaults to :development)" + c.option '--type [TYPE]', [:development, :distribution], "Type of profile (development or distribution; defaults to development)" c.action do |args, options| type = options.type.downcase.to_sym if options.type profiles = try{agent.list_profiles(type || :development)} @@ -35,11 +35,11 @@ command :'profiles:download' do |c| c.syntax = 'ios profiles:download [PROFILE_NAME]' c.summary = 'Downloads the Provisioning Profiles' c.description = '' - c.option '--type [TYPE]', [:development, :distribution], "Type of profile (defaults to :development)" + c.option '--type [TYPE]', [:development, :distribution], "Type of profile (development or distribution; defaults to development)" c.action do |args, options| type = options.type.downcase.to_sym if options.type profiles = try{agent.list_profiles(type || :development)} profiles = profiles.select{|profile| profile.status == 'Active'} @@ -62,11 +62,11 @@ command :'profiles:download:all' do |c| c.syntax = 'ios profiles:download:all' c.summary = 'Downloads all the active Provisioning Profiles' c.description = '' - c.option '--type [TYPE]', [:development, :distribution], "Type of profile (defaults to :development)" + c.option '--type [TYPE]', [:development, :distribution], "Type of profile (development or distribution; defaults to development)" c.action do |args, options| type = options.type.downcase.to_sym if options.type profiles = try{agent.list_profiles(type || :development)} profiles = profiles.select{|profile| profile.status == 'Active'} @@ -85,11 +85,11 @@ command :'profiles:manage:devices' do |c| c.syntax = 'ios profiles:manage:devices' c.summary = 'Manage active devices for a development provisioning profile' c.description = '' - c.option '--type [TYPE]', [:development, :distribution], "Type of profile (defaults to :development)" + c.option '--type [TYPE]', [:development, :distribution], "Type of profile (development or distribution; defaults to development)" c.action do |args, options| type = options.type.downcase.to_sym if options.type profiles = try{agent.list_profiles(type || :development)} @@ -136,16 +136,16 @@ say_warning "No provisioning profiles named #{args.first} were found." and abort unless profile agent.manage_devices_for_profile(profile) do |on, off| names = args[1..-1].collect{|arg| arg.sub /\=.*/, ''} devices = [] - + names.each do |name| device = (on + off).detect{|d| d.name === name} say_warning "No device named #{name} was found." and abort unless device devices << Device.new(name, device.udid) end - + on + devices end say_ok "Successfully added devices to #{args.first}." end