Class: Fastlane::Actions::IosCurrentBranchIsHotfixAction

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

Documentation collapse

Class Method Summary collapse

Class Method Details

.authorsObject



31
32
33
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 31

def self.authors
  ['Automattic']
end

.available_optionsObject



21
22
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 21

def self.available_options
end

.descriptionObject



13
14
15
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 13

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

.detailsObject



17
18
19
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 17

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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 35

def self.is_supported?(platform)
  %i[ios mac].include?(platform)
end

.outputObject



24
25
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 24

def self.output
end

.return_valueObject



27
28
29
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 27

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

.run(params) ⇒ Object



4
5
6
7
# File 'lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_current_branch_is_hotfix.rb', line 4

def self.run(params)
  require_relative '../../helper/ios/ios_version_helper'
  Fastlane::Helper::Ios::VersionHelper.is_hotfix?(Fastlane::Helper::Ios::VersionHelper.get_public_version)
end