Class: Fastlane::Actions::GitBranchAction
Class Method Summary
collapse
action_name, author, sh, step_text
Class Method Details
.authors ⇒ Object
32
33
34
|
# File 'lib/fastlane/actions/git_branch.rb', line 32
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
24
25
26
|
# File 'lib/fastlane/actions/git_branch.rb', line 24
def self.available_options
[]
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
|