Class: Fastlane::Actions::AndroidCurrentBranchIsHotfixAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



37
38
39
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 37

def self.authors
  ['Automattic']
end

.available_optionsObject



26
27
28
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 26

def self.available_options
  # Define all options your action supports.
end

.descriptionObject



18
19
20
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 18

def self.description
  'Checks if the current branch is for a hotfix'
end

.detailsObject



22
23
24
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 22

def self.details
  'Checks if the current branch is for a hotfix'
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 41

def self.is_supported?(platform)
  platform == :android
end

.outputObject



30
31
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 30

def self.output
end

.return_valueObject



33
34
35
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_current_branch_is_hotfix.rb', line 33

def self.return_value
  'True if the branch is for a hotfix, false otherwise'
end

.run(params) ⇒ Object



8
9
10
11
12
# 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 = Fastlane::Helper::Android::VersionHelper.get_release_version
  Fastlane::Helper::Android::VersionHelper.is_hotfix?(version)
end