lib/appium_lib/driver.rb in appium_lib-0.5.3 vs lib/appium_lib/driver.rb in appium_lib-0.5.4
- old
+ new
@@ -247,11 +247,13 @@
end
# Converts environment variable APP_PATH to an absolute path.
# @return [String] APP_PATH as an absolute path
def absolute_app_path
- raise 'APP_PATH environment variable not set!' if @app_path.nil? || @app_path.empty?
+ raise 'APP_PATH not set!' if @app_path.nil? || @app_path.empty?
+ # Sauce storage API. http://saucelabs.com/docs/rest#storage
+ return @app_path if @app_path.start_with? 'sauce-storage:'
return @app_path if @app_path.match(/^http/) # public URL for Sauce
if @app_path.match(/^\//) # absolute file path
raise "App doesn't exist. #{@app_path}" unless File.exist? @app_path
return @app_path
end
@@ -429,6 +431,6 @@
end # end module Appium
# Paging in Pry is annoying :q required to exit.
# With pager disabled, the output is similar to IRB
# Only set if Pry is defined.
-Pry.config.pager = false if defined?(Pry)
\ No newline at end of file
+Pry.config.pager = false if defined?(Pry)