Module: Spaceship::Tunes
- Defined in:
- spaceship/lib/spaceship/tunes/iap.rb,
spaceship/lib/spaceship/tunes/build.rb,
spaceship/lib/spaceship/tunes/errors.rb,
spaceship/lib/spaceship/tunes/member.rb,
spaceship/lib/spaceship/tunes/members.rb,
spaceship/lib/spaceship/tunes/b2b_user.rb,
spaceship/lib/spaceship/tunes/iap_list.rb,
spaceship/lib/spaceship/tunes/iap_type.rb,
spaceship/lib/spaceship/tunes/app_image.rb,
spaceship/lib/spaceship/tunes/spaceship.rb,
spaceship/lib/spaceship/tunes/territory.rb,
spaceship/lib/spaceship/tunes/app_review.rb,
spaceship/lib/spaceship/tunes/app_status.rb,
spaceship/lib/spaceship/tunes/iap_detail.rb,
spaceship/lib/spaceship/tunes/iap_status.rb,
spaceship/lib/spaceship/tunes/tunes_base.rb,
spaceship/lib/spaceship/tunes/app_details.rb,
spaceship/lib/spaceship/tunes/app_ratings.rb,
spaceship/lib/spaceship/tunes/app_trailer.rb,
spaceship/lib/spaceship/tunes/app_version.rb,
spaceship/lib/spaceship/tunes/application.rb,
spaceship/lib/spaceship/tunes/build_train.rb,
spaceship/lib/spaceship/tunes/device_type.rb,
spaceship/lib/spaceship/tunes/version_set.rb,
spaceship/lib/spaceship/tunes/availability.rb,
spaceship/lib/spaceship/tunes/iap_families.rb,
spaceship/lib/spaceship/tunes/pricing_info.rb,
spaceship/lib/spaceship/tunes/pricing_tier.rb,
spaceship/lib/spaceship/tunes/app_analytics.rb,
spaceship/lib/spaceship/tunes/build_details.rb,
spaceship/lib/spaceship/tunes/language_item.rb,
spaceship/lib/spaceship/tunes/app_screenshot.rb,
spaceship/lib/spaceship/tunes/app_submission.rb,
spaceship/lib/spaceship/tunes/display_family.rb,
spaceship/lib/spaceship/tunes/sandbox_tester.rb,
spaceship/lib/spaceship/tunes/app_version_ref.rb,
spaceship/lib/spaceship/tunes/iap_family_list.rb,
spaceship/lib/spaceship/tunes/b2b_organization.rb,
spaceship/lib/spaceship/tunes/transit_app_file.rb,
spaceship/lib/spaceship/tunes/app_version_common.rb,
spaceship/lib/spaceship/tunes/developer_response.rb,
spaceship/lib/spaceship/tunes/iap_family_details.rb,
spaceship/lib/spaceship/tunes/language_converter.rb,
spaceship/lib/spaceship/tunes/app_version_history.rb,
spaceship/lib/spaceship/tunes/app_review_attachment.rb,
spaceship/lib/spaceship/tunes/app_version_promocodes.rb,
spaceship/lib/spaceship/tunes/app_version_states_history.rb,
spaceship/lib/spaceship/tunes/iap_subscription_pricing_info.rb,
spaceship/lib/spaceship/tunes/iap_subscription_pricing_tier.rb,
spaceship/lib/spaceship/tunes/app_version_generated_promocodes.rb
Defined Under Namespace
Modules: AppStatus, IAPStatus, IAPType Classes: AppAnalytics, AppDetails, AppImage, AppRatings, AppReview, AppReviewAttachment, AppScreenshot, AppSubmission, AppTrailer, AppVersion, AppVersionCommon, AppVersionGeneratedPromocodes, AppVersionHistory, AppVersionPromocodes, AppVersionRef, AppVersionStatesHistory, Application, Availability, B2bOrganization, B2bUser, Build, BuildDetails, BuildTrain, DeveloperResponse, DeviceType, DisplayFamily, Error, IAP, IAPDetail, IAPFamilies, IAPFamilyDetails, IAPFamilyList, IAPList, IAPSubscriptionPricingInfo, IAPSubscriptionPricingTier, LanguageConverter, LanguageItem, Member, Members, PotentialServerError, PricingInfo, PricingTier, SandboxTester, TemporaryError, Territory, TransitAppFile, TunesBase, VersionSet
Class Attribute Summary collapse
-
.client ⇒ Object
This client stores the default client when using the lazy syntax Spaceship.app instead of using the spaceship launcher.
Class Method Summary collapse
-
.login(user = nil, password = nil) ⇒ Spaceship::Client
Authenticates with Apple’s web services.
-
.select_team(team_id: nil, team_name: nil) ⇒ Object
Open up the team selection for the user (if necessary).
Class Attribute Details
.client ⇒ Object
This client stores the default client when using the lazy syntax Spaceship.app instead of using the spaceship launcher
8 9 10 |
# File 'spaceship/lib/spaceship/tunes/spaceship.rb', line 8 def client @client end |
Class Method Details
.login(user = nil, password = nil) ⇒ Spaceship::Client
Authenticates with Apple’s web services. This method has to be called once to generate a valid session. The session will automatically be used from then on.
This method will automatically use the username from the Appfile (if available) and fetch the password from the Keychain (if available)
23 24 25 |
# File 'spaceship/lib/spaceship/tunes/spaceship.rb', line 23 def login(user = nil, password = nil) @client = TunesClient.login(user, password) end |
.select_team(team_id: nil, team_name: nil) ⇒ Object
Open up the team selection for the user (if necessary).
If the user is in multiple teams, a team selection is shown. The user can then select a team by entering the number
34 35 36 |
# File 'spaceship/lib/spaceship/tunes/spaceship.rb', line 34 def select_team(team_id: nil, team_name: nil) @client.select_team(team_id: team_id, team_name: team_name) end |