./lib/shenzhen/plugins/testflight.rb in shenzhen-0.2.4 vs ./lib/shenzhen/plugins/testflight.rb in shenzhen-0.2.5
- old
+ new
@@ -56,14 +56,14 @@
say_error "Missing or unspecified .ipa file" and abort unless @file and File.exist?(@file)
determine_dsym! unless @dsym = options.dsym
say_error "Specified dSYM.zip file doesn't exist" if @dsym and !File.exist?(@dsym)
- determine_api_token! unless @api_token = options.api_token
+ determine_testflight_api_token! unless @api_token = options.api_token
say_error "Missing API Token" and abort unless @api_token
- determine_team_token! unless @team_token = options.team_token
+ determine_testflight_team_token! unless @team_token = options.team_token
determine_notes! unless @notes = options.notes
say_error "Missing release notes" and abort unless @notes
parameters = {}
@@ -84,40 +84,13 @@
end
end
private
- def determine_api_token!
+ def determine_testflight_api_token!
@api_token ||= ask "API Token:"
end
- def determine_team_token!
+ def determine_testflight_team_token!
@team_token ||= ask "Team Token:"
- end
-
- def determine_file!
- files = Dir['*.ipa']
- @file ||= case files.length
- when 0 then nil
- when 1 then files.first
- else
- @file = choose "Select an .ipa File:", *files
- end
- end
-
- def determine_dsym!
- dsym_files = Dir['*.dSYM.zip']
- @dsym ||= case dsym_files.length
- when 0 then nil
- when 1 then dsym_files.first
- else
- @dsym = choose "Select a .dSYM.zip file:", *dsym_files
- end
- end
-
- def determine_notes!
- placeholder = %{What's new in this release: }
-
- @notes = ask_editor placeholder
- @notes = nil if @notes == placeholder
end
end