Method: Spaceship::Portal.login
- Defined in:
- lib/spaceship/portal/spaceship.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)
21 22 23 |
# File 'lib/spaceship/portal/spaceship.rb', line 21 def login(user = nil, password = nil) @client = PortalClient.login(user, password) end |