Class: Fastlane::Actions::AndroidCurrentBranchIsHotfixAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::AndroidCurrentBranchIsHotfixAction
- Defined in:
- lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
- .return_value ⇒ Object
Class Method Summary collapse
Class Method Details
.authors ⇒ Object
47 48 49 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 47 def self. ['Automattic'] end |
.available_options ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 31 def self. [ FastlaneCore::ConfigItem.new(key: :version_properties_path, description: 'Path to the version.properties file', type: String, optional: false), ] end |
.description ⇒ Object
23 24 25 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 23 def self.description 'Checks if the current branch is for a hotfix' end |
.details ⇒ Object
27 28 29 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 27 def self.details 'Checks if the current branch is for a hotfix' end |
.is_supported?(platform) ⇒ Boolean
51 52 53 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 51 def self.is_supported?(platform) platform == :android end |
.output ⇒ Object
40 41 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 40 def self.output end |
.return_value ⇒ Object
43 44 45 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 43 def self.return_value 'True if the branch is for a hotfix, false otherwise' end |
.run(params) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 8 def self.run(params) require_relative '../../helper/android/android_version_helper' version_properties_path = params[:version_properties_path] version = Fastlane::Helper::Android::VersionHelper.get_release_version( version_properties_path: version_properties_path ) Fastlane::Helper::Android::VersionHelper.is_hotfix?(version) end |