Class: DPL::Provider::TestFairy
- Inherits:
-
DPL::Provider
- Object
- DPL::Provider
- DPL::Provider::TestFairy
- Defined in:
- lib/dpl/provider/testfairy.rb
Constant Summary collapse
- VERSION =
"0.2"
- TAG =
"-TestFairy-"
- SERVER =
"http://api.testfairy.com"
- UPLOAD_URL_PATH =
"/api/upload"
Instance Method Summary collapse
Instance Method Details
#android? ⇒ Boolean
32 33 34 |
# File 'lib/dpl/provider/testfairy.rb', line 32 def android? option(:app_file).include? "apk" end |
#check_auth ⇒ Object
15 16 17 18 19 20 |
# File 'lib/dpl/provider/testfairy.rb', line 15 def check_auth if ![:app_file] error 'App file is missing' end puts "api-key = #{option(:api_key).gsub(/[123456789]/, '*')} symbols-file = #{[:symbols_file]}" end |
#needs_key? ⇒ Boolean
22 23 24 |
# File 'lib/dpl/provider/testfairy.rb', line 22 def needs_key? false end |
#push_app ⇒ Object
26 27 28 29 30 |
# File 'lib/dpl/provider/testfairy.rb', line 26 def push_app puts "push_app #{TAG}" response = upload_app puts "Upload success!, check your build on #{response['build_url']}" end |