Class: DPL::Provider::TestFairy
Constant Summary
collapse
- VERSION =
"0.2"
- TAG =
"-TestFairy-"
- SERVER =
"http://api.testfairy.com"
- UPLOAD_URL_PATH =
"/api/upload"
Instance Attribute Summary
#context, #options
Instance Method Summary
collapse
apt_get, #check_app, #cleanup, #commit_msg, context, #create_key, #default_text_charset, #default_text_charset?, #deploy, deprecated, #detect_encoding?, #encoding_for, #error, experimental, #initialize, #log, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #setup_git_ssh, #sha, shell, #uncleanup, #user_agent, #warn
Constructor Details
This class inherits a constructor from DPL::Provider
Instance Method Details
#android? ⇒ Boolean
34
35
36
|
# File 'lib/dpl/provider/testfairy.rb', line 34
def android?
option(:app_file).include? "apk"
end
|
#check_auth ⇒ Object
17
18
19
20
21
22
|
# File 'lib/dpl/provider/testfairy.rb', line 17
def check_auth
if !options[:app_file]
error 'App file is missing'
end
puts "api-key = #{option(:api_key).gsub(/[123456789]/, '*')} symbols-file = #{options[:symbols_file]}"
end
|
#needs_key? ⇒ Boolean
24
25
26
|
# File 'lib/dpl/provider/testfairy.rb', line 24
def needs_key?
false
end
|
#push_app ⇒ Object
28
29
30
31
32
|
# File 'lib/dpl/provider/testfairy.rb', line 28
def push_app
puts "push_app #{TAG}"
response = upload_app
puts "Upload success!, check your build on #{response['build_url']}"
end
|