Class: AppSendr::Command::Portal
- Defined in:
- lib/appsendr/commands/portal.rb
Constant Summary collapse
- LOGIN_URL =
'https://developer.apple.com/ios/manage/overview/index.action'
- DEVICES_URL =
"https://developer.apple.com/ios/manage/devices/index.action"
- DEVICE_BULK_UPLOAD_URL =
"http://developer.apple.com/ios/manage/devices/saveupload.action"
- SAVE_TEAM_URL =
"http://developer.apple.com/membercenter/saveTeamSelection.action"
- DEV_PROVISIONING_PROFILE_URL =
"https://developer.apple.com/ios/manage/provisioningprofiles/index.action"
- DIST_PROVISIONING_PROFILE_URL =
"https://developer.apple.com/ios/manage/provisioningprofiles/viewDistributionProfiles.action"
- CREATE_ADHOC_PROFILE_URL =
"http://developer.apple.com/ios/manage/provisioningprofiles/create.action?type=2"
- DOWNLOAD_PROFILE_URL_WO_ID =
"/ios/manage/provisioningprofiles/download.action?blobId="
- EDIT_PROFILE_URL_WO_ID =
"/ios/manage/provisioningprofiles/edit.action?provDisplayId="
- @@agent =
Mechanize.new
- @@available_devices =
[]
- @@available_profiles =
[]
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#appsendr, #ask, #confirm, #extract_app, #extract_option, #format_date, #initialize, #option_exists?
Methods included from Helpers
#display, #error, #has_project_droppr?, #home_directory, #in_project_dir?, #is_file_to_large?, #message, #project_appsendr, #project_appsendr_app, #read_app, #read_app_id, #require_in_project_and_no_droppr, #require_project, #require_project_dir, #require_project_droppr, #running_on_a_mac?, #running_on_windows?, #size_of_file
Constructor Details
This class inherits a constructor from AppSendr::Command::Base
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials.
4 5 6 |
# File 'lib/appsendr/commands/portal.rb', line 4 def credentials @credentials end |
Instance Method Details
#devices ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/appsendr/commands/portal.rb', line 45 def devices result = check_for_manual_login if result @available_devices = get_devices @available_devices.each{|device| display "#{device[:name]} - #{device[:id]}" } end end |
#index ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/appsendr/commands/portal.rb', line 29 def index result = check_for_manual_login if result @available_devices = get_devices @available_dev_profiles = development_provisioning_profiles @available_dist_profiles = distribution_provisioning_profiles display "#{@available_devices.length} Devices" display "#{@available_dev_profiles.length} Development Profiles" display "#{@available_dist_profiles.length} Distribution Profiles" end end |
#profiles ⇒ Object
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/appsendr/commands/portal.rb', line 56 def profiles result = check_for_manual_login if result @available_dev_profiles = development_provisioning_profiles @available_dist_profiles = distribution_provisioning_profiles display "\nDevelopment Profiles\n" @available_dev_profiles.each{|profile| display "#{profile[:name]} - #{profile[:app_id]}" } display "\nDistribution Profiles\n" @available_dist_profiles.each{|profile| display "#{profile[:name]} - #{profile[:app_id]}" } end end |
#update ⇒ Object
77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/appsendr/commands/portal.rb', line 77 def update @remote_devices = appsendr.devices(nil,false) @available_devices = get_devices ## get devices for users for this app ## get all devices from portal ## reconcile ## add device not on portal ## get profile for app ## end |