Class: Fastlane::Saucectl::Storage
- Inherits:
-
Object
- Object
- Fastlane::Saucectl::Storage
- Defined in:
- lib/fastlane/plugin/saucectl/helper/storage.rb
Overview
This class provides the ability to store, delete, and retrieve data from the Sauce Labs Storage API
Instance Method Summary collapse
-
#delete_all_apps_for_group_id ⇒ Object
Deletes the specified group of files from Sauce Storage.
-
#delete_app_with_file_id ⇒ Object
Delete app by the Sauce Labs identifier of the stored file.
-
#initialize(config) ⇒ Storage
constructor
A new instance of Storage.
-
#retrieve_all_apps ⇒ Object
Get App Storage Files.
-
#upload_app ⇒ Object
Uploads an application file to Sauce Storage for the purpose of mobile application testing.
Constructor Details
#initialize(config) ⇒ Storage
Returns a new instance of Storage.
10 11 12 |
# File 'lib/fastlane/plugin/saucectl/helper/storage.rb', line 10 def initialize(config) @config = config end |
Instance Method Details
#delete_all_apps_for_group_id ⇒ Object
Deletes the specified group of files from Sauce Storage. The Sauce Labs identifier of the group of files. You can look up file IDs using the Get App Storage Groups endpoint. docs.saucelabs.com/dev/api/storage/#get-app-storage-groups
33 34 35 36 37 |
# File 'lib/fastlane/plugin/saucectl/helper/storage.rb', line 33 def delete_all_apps_for_group_id path = "v1/storage/files/#{@config[:group_id]}" api = Fastlane::Saucectl::Api.new(@config) api.delete_app(path) end |
#delete_app_with_file_id ⇒ Object
Delete app by the Sauce Labs identifier of the stored file. You can look up file IDs using the Get App Storage Files endpoint. docs.saucelabs.com/dev/api/storage/#get-app-storage-files
24 25 26 27 |
# File 'lib/fastlane/plugin/saucectl/helper/storage.rb', line 24 def delete_app_with_file_id api = Fastlane::Saucectl::Api.new(@config) api.delete_app("v1/storage/files/#{@config[:app_id]}") end |