class Pantograph::Actions::GitBranchAction

Public Class Methods

authors() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 34
def self.authors
  ['johnknapprs']
end
available_options() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 24
def self.available_options
  []
end
category() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 52
def self.category
  :source_control
end
description() click to toggle source

@!group Documentation

# File pantograph/lib/pantograph/actions/git_branch.rb, line 16
def self.description
  'Returns the name of the current git branch'
end
details() click to toggle source
# 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() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 42
def self.example_code
  [
    'git_branch'
  ]
end
is_supported?(platform) click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 38
def self.is_supported?(platform)
  true
end
output() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 28
def self.output
  [
    ['GIT_BRANCH_NAME', 'The git branch name']
  ]
end
return_type() click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 48
def self.return_type
  :string
end
run(params) click to toggle source
# File pantograph/lib/pantograph/actions/git_branch.rb, line 8
def self.run(params)
  Actions.lane_context[SharedValues::GIT_BRANCH_NAME] = Helper::Git.current_branch
end