Class: Pilot::BuildManager
Instance Method Summary
collapse
Methods inherited from Manager
#app, #config, #fetch_app_id, #fetch_app_identifier, #login, #start
Instance Method Details
#list(options) ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/pilot/build_manager.rb', line 29
def list(options)
start(options)
if config[:apple_id].to_s.length == 0 and config[:app_identifier].to_s.length == 0
config[:app_identifier] = ask("App Identifier: ")
end
rows = app.all_processing_builds.collect { |build| describe_build(build) }
rows = rows + app.builds.collect { |build| describe_build(build) }
puts Terminal::Table.new(
title: "#{app.name} Builds".green,
headings: ["Version #", "Build #", "Testing", "Installs", "Sessions"],
rows: rows
)
end
|
#upload(options) ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/pilot/build_manager.rb', line 3
def upload(options)
start(options)
Helper.log.info "Ready to upload new build to TestFlight (App: #{app.apple_id})...".green
package_path = PackageBuilder.new.generate(apple_id: app.apple_id,
ipa_path: config[:ipa],
package_path: "/tmp")
transporter = FastlaneCore::ItunesTransporter.new(options[:username])
result = transporter.upload(app.apple_id, package_path)
if result
Helper.log.info "Successfully uploaded the new binary to iTunes Connect"
unless config[:skip_submission]
upload_date = wait_for_processing_build
distribute_build(upload_date)
Helper.log.info "Successfully distribute build to beta testers 🚀"
end
else
raise "Error uploading ipa file, more information see above".red
end
end
|