Class: Fastlane::Actions::UninowSentryFinalizeReleaseAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::UninowSentryFinalizeReleaseAction
- Defined in:
- lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
56 57 58 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 56 def self. ["wschurman"] end |
.available_options ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 39 def self. Helper::UninowSentryConfig.common_api_config_items + [ FastlaneCore::ConfigItem.new(key: :version, description: "Release version to finalize on Sentry"), FastlaneCore::ConfigItem.new(key: :app_identifier, short_option: "-a", env_name: "SENTRY_APP_IDENTIFIER", description: "App Bundle Identifier, prepended to version", optional: true) ] end |
.description ⇒ Object
28 29 30 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 28 def self.description "Finalize a release for a project on Sentry" end |
.details ⇒ Object
32 33 34 35 36 37 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 32 def self.details [ "This action allows you to finalize releases created for a project on Sentry.", "See https://docs.sentry.io/learn/cli/releases/#finalizing-releases for more information." ].join(" ") end |
.is_supported?(platform) ⇒ Boolean
60 61 62 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 60 def self.is_supported?(platform) true end |
.return_value ⇒ Object
52 53 54 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 52 def self.return_value nil end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/fastlane/plugin/uninow_sentry/actions/uninow_sentry_finalize_release.rb', line 4 def self.run(params) require 'shellwords' Helper::UninowSentryHelper.check_sentry_cli! Helper::UninowSentryConfig.parse_api_params(params) version = params[:version] version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier] command = [ "sentry-cli", "releases", "finalize", version ] Helper::UninowSentryHelper.call_sentry_cli(command) UI.success("Successfully finalized release: #{version}") end |