Module: Spaceship
- Defined in:
- lib/spaceship.rb,
lib/spaceship/ui.rb,
lib/spaceship/app.rb,
lib/spaceship/base.rb,
lib/spaceship/device.rb,
lib/spaceship/version.rb,
lib/spaceship/launcher.rb,
lib/spaceship/certificate.rb,
lib/spaceship/profile_types.rb,
lib/spaceship/ui/select_team.rb,
lib/spaceship/provisioning_profile.rb,
lib/spaceship/client.rb
Defined Under Namespace
Classes: App, Base, Certificate, Client, Device, Launcher, ProvisioningProfile
Constant Summary collapse
- VERSION =
"0.0.2"
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
-
.app ⇒ Class
Access the apps for the spaceship.
-
.certificate ⇒ Class
Access the certificates for the spaceship.
-
.device ⇒ Class
Access the devices for the spaceship.
-
.login(user = nil, password = nil) ⇒ Spaceship::Client
Authenticates with Apple’s web services.
-
.provisioning_profile ⇒ Class
Access the provisioning profiles for the spaceship.
-
.select_team ⇒ String
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
16 17 18 |
# File 'lib/spaceship.rb', line 16 def client @client end |
Class Method Details
.app ⇒ Class
Returns Access the apps for the spaceship.
53 54 55 |
# File 'lib/spaceship.rb', line 53 def app Spaceship::App.set_client(@client) end |
.certificate ⇒ Class
Returns Access the certificates for the spaceship.
63 64 65 |
# File 'lib/spaceship.rb', line 63 def certificate Spaceship::Certificate.set_client(@client) end |
.device ⇒ Class
Returns Access the devices for the spaceship.
58 59 60 |
# File 'lib/spaceship.rb', line 58 def device Spaceship::Device.set_client(@client) end |
.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)
31 32 33 |
# File 'lib/spaceship.rb', line 31 def login(user = nil, password = nil) @client = Client.login(user, password) end |
.provisioning_profile ⇒ Class
Returns Access the provisioning profiles for the spaceship.
68 69 70 |
# File 'lib/spaceship.rb', line 68 def provisioning_profile Spaceship::ProvisioningProfile.set_client(@client) end |
.select_team ⇒ String
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
Additionally, the team ID is shown next to each team name so that the user can use the environment variable ‘FASTLANE_TEAM_ID` for future user.
46 47 48 |
# File 'lib/spaceship.rb', line 46 def select_team @client.select_team end |