Method: Spaceship::Client.login
- Defined in:
- spaceship/lib/spaceship/client.rb
.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)
353 354 355 356 357 358 359 360 |
# File 'spaceship/lib/spaceship/client.rb', line 353 def self.login(user = nil, password = nil) instance = self.new if instance.login(user, password) instance else raise InvalidUserCredentialsError.new, "Invalid User Credentials" end end |