Sha256: 95288654d99cfcd67743e2037b374e1e4b923a72910ea19d7fc015f8cff861e1

Contents?: true

Size: 1.23 KB

Versions: 522

Compression:

Stored size: 1.23 KB

Contents

module Spaceship
  module Tunes
    class << self
      # This client stores the default client when using the lazy syntax
      # Spaceship.app instead of using the spaceship launcher
      attr_accessor :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)
      #
      # @param user (String) (optional): The username (usually the email address)
      # @param password (String) (optional): The password
      #
      # @raise InvalidUserCredentialsError: raised if authentication failed
      #
      # @return (Spaceship::Client) The client the login method was called for
      def login(user = nil, password = nil)
        @client = TunesClient.login(user, password)
      end

      # 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
      def select_team
        @client.select_team
      end
    end
  end
end

Version data entries

522 entries across 522 versions & 2 rubygems

Version Path
fastlane-2.57.0.beta.20170918010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.57.0.beta.20170917010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.57.0.beta.20170916010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.57.0.beta.20170915010002 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.57.0.beta.20170914010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.57.0.beta.20170913010002 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170912010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170911010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170910010002 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170909010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170908010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170907010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170906010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170905010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170904010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170903010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170902010003 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.56.0.beta.20170901010002 spaceship/lib/spaceship/tunes/spaceship.rb
fastlane-2.55.0 spaceship/lib/spaceship/tunes/spaceship.rb