Class: Fastlane::Actions::OvoAzureDeleteBlobAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::OvoAzureDeleteBlobAction
- Defined in:
- lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb
Class Method Summary collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .category ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
- .run(params) ⇒ Object
Class Method Details
.authors ⇒ Object
19 20 21 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 19 def self. ["Christian Borsato"] end |
.available_options ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 31 def self. [ FastlaneCore::ConfigItem.new( key: :account, env_name: "AZURE_ACCOUNT_NAME", description: "The name of the Azure account where the container is hosted", optional: false, is_string: true ), FastlaneCore::ConfigItem.new( key: :container, env_name: "AZURE_CONTAINER_NAME", description: "The name of the Azure container where the file will be stored", optional: false, is_string: true ), FastlaneCore::ConfigItem.new( key: :sas_token, env_name: "AZURE_SAS_TOKEN", description: "The Shared Access Signature (SAS) token that grants secure access to the Azure container", optional: false, is_string: true ), FastlaneCore::ConfigItem.new( key: :blob_path, description: "The relative path where the blob file is located, including the file name (e.g., '/test/ios/test.json')", optional: false, is_string: true ) ] end |
.category ⇒ Object
67 68 69 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 67 def self.category :misc end |
.description ⇒ Object
15 16 17 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 15 def self.description "An action to delete a blob from an Azure container." end |
.details ⇒ Object
27 28 29 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 27 def self.details "This action allows you to delete a specific blob from a given Azure container. It's useful for cleaning up unused or obsolete files as part of your CI/CD workflow. It handles missing blobs gracefully and avoids build failure in case the blob was already removed." end |
.is_supported?(platform) ⇒ Boolean
63 64 65 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 63 def self.is_supported?(platform) true end |
.return_value ⇒ Object
23 24 25 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 23 def self.return_value "This action returns a boolean value: true if the blob was successfully deleted, and false if the blob does not exist or was already deleted. If an error occurs during the deletion process (e.g., authentication failure or connection issues), it returns nil." end |
.run(params) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/fastlane/plugin/ovo_azure/actions/ovo_azure_delete_blob_action.rb', line 6 def self.run(params) Helper::OvoAzureHelper.delete_blob( account: params[:account], container: params[:container], sas_token: params[:sas_token], blob_path: params[:blob_path] ) end |