Class: Fastlane::Actions::GitBranchAction
- Inherits:
-
Fastlane::Action
- Object
- Fastlane::Action
- Fastlane::Actions::GitBranchAction
- Defined in:
- lib/fastlane/actions/git_branch.rb
Documentation collapse
- .authors ⇒ Object
- .available_options ⇒ Object
- .description ⇒ Object
- .details ⇒ Object
- .is_supported?(platform) ⇒ Boolean
- .output ⇒ Object
Class Method Summary collapse
Methods inherited from Fastlane::Action
Class Method Details
.authors ⇒ Object
32 33 34 |
# File 'lib/fastlane/actions/git_branch.rb', line 32 def self. ["KrauseFx"] end |
.available_options ⇒ Object
24 25 26 |
# File 'lib/fastlane/actions/git_branch.rb', line 24 def self. [] end |
.description ⇒ Object
16 17 18 |
# File 'lib/fastlane/actions/git_branch.rb', line 16 def self.description "Returns the name of the current git branch" end |
.details ⇒ Object
20 21 22 |
# File 'lib/fastlane/actions/git_branch.rb', line 20 def self.details "If no branch could be found, this action will return nil" end |
.is_supported?(platform) ⇒ Boolean
36 37 38 |
# File 'lib/fastlane/actions/git_branch.rb', line 36 def self.is_supported?(platform) true end |
.output ⇒ Object
28 29 30 |
# File 'lib/fastlane/actions/git_branch.rb', line 28 def self.output [] end |
.run(params) ⇒ Object
8 9 10 |
# File 'lib/fastlane/actions/git_branch.rb', line 8 def self.run(params) ENV['GIT_BRANCH'] or `git symbolic-ref HEAD --short 2>/dev/null`.strip end |