Class: Pantograph::Actions::GitBranchAction
Constant Summary
Pantograph::Action::AVAILABLE_CATEGORIES, Pantograph::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
34
35
36
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 34
def self.authors
['johnknapprs']
end
|
.available_options ⇒ Object
24
25
26
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 24
def self.available_options
[]
end
|
.category ⇒ Object
52
53
54
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 52
def self.category
:source_control
end
|
.description ⇒ Object
16
17
18
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 16
def self.description
'Returns the name of the current git branch'
end
|
.details ⇒ Object
20
21
22
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 20
def self.details
'If no branch could be found, this action will return an empty string'
end
|
.example_code ⇒ Object
42
43
44
45
46
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 42
def self.example_code
[
'git_branch'
]
end
|
.is_supported?(platform) ⇒ Boolean
38
39
40
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 38
def self.is_supported?(platform)
true
end
|
.output ⇒ Object
28
29
30
31
32
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 28
def self.output
[
['GIT_BRANCH_NAME', 'The git branch name']
]
end
|
.return_type ⇒ Object
48
49
50
|
# File 'pantograph/lib/pantograph/actions/git_branch.rb', line 48
def self.return_type
:string
end
|