Module: Spaceship::Tunes

Defined in:
lib/spaceship/tunes/build.rb,
lib/spaceship/tunes/tester.rb,
lib/spaceship/tunes/app_image.rb,
lib/spaceship/tunes/spaceship.rb,
lib/spaceship/tunes/app_status.rb,
lib/spaceship/tunes/tunes_base.rb,
lib/spaceship/tunes/app_details.rb,
lib/spaceship/tunes/app_ratings.rb,
lib/spaceship/tunes/app_trailer.rb,
lib/spaceship/tunes/app_version.rb,
lib/spaceship/tunes/application.rb,
lib/spaceship/tunes/build_train.rb,
lib/spaceship/tunes/device_type.rb,
lib/spaceship/tunes/user_detail.rb,
lib/spaceship/tunes/version_set.rb,
lib/spaceship/tunes/pricing_tier.rb,
lib/spaceship/tunes/build_details.rb,
lib/spaceship/tunes/language_item.rb,
lib/spaceship/tunes/app_screenshot.rb,
lib/spaceship/tunes/app_submission.rb,
lib/spaceship/tunes/app_version_ref.rb,
lib/spaceship/tunes/recovery_device.rb,
lib/spaceship/tunes/transit_app_file.rb,
lib/spaceship/tunes/app_version_common.rb,
lib/spaceship/tunes/language_converter.rb,
lib/spaceship/tunes/app_version_history.rb,
lib/spaceship/tunes/app_version_promocodes.rb,
lib/spaceship/tunes/app_version_states_history.rb,
lib/spaceship/tunes/app_version_generated_promocodes.rb

Defined Under Namespace

Modules: AppStatus Classes: AppDetails, AppImage, AppRatingSummary, AppRatings, AppScreenshot, AppSubmission, AppTrailer, AppVersion, AppVersionCommon, AppVersionGeneratedPromocodes, AppVersionHistory, AppVersionPromocodes, AppVersionRef, AppVersionStatesHistory, Application, Build, BuildDetails, BuildTrain, DeviceType, LanguageConverter, LanguageItem, PricingInfo, PricingTier, RecoveryDevice, SandboxTester, Tester, TransitAppFile, TunesBase, UserDetail, VersionSet

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject

This client stores the default client when using the lazy syntax Spaceship.app instead of using the spaceship launcher



6
7
8
# File 'lib/spaceship/tunes/spaceship.rb', line 6

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)

Parameters:

  • user (String) (defaults to: nil)

    (optional): The username (usually the email address)

  • password (String) (defaults to: nil)

    (optional): The password

Returns:

Raises:

  • InvalidUserCredentialsError: raised if authentication failed



21
22
23
# File 'lib/spaceship/tunes/spaceship.rb', line 21

def (user = nil, password = nil)
  @client = TunesClient.(user, password)
end

.select_teamObject

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



29
30
31
# File 'lib/spaceship/tunes/spaceship.rb', line 29

def select_team
  @client.select_team
end