Class: DPL::Provider::TestFairy

Inherits:
DPL::Provider show all
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

Returns:

  • (Boolean)


32
33
34
# File 'lib/dpl/provider/testfairy.rb', line 32

def android?
  option(:app_file).include? "apk"
end

#check_authObject



15
16
17
18
19
20
# File 'lib/dpl/provider/testfairy.rb', line 15

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

Returns:

  • (Boolean)


22
23
24
# File 'lib/dpl/provider/testfairy.rb', line 22

def needs_key?
  false
end

#push_appObject



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