Class: Fastlane::Actions::LastGitCommitAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/last_git_commit.rb

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, authors, available_options, details, method_missing, other_action, output, sh, step_text

Class Method Details

.authorObject



20
21
22
# File 'lib/fastlane/actions/last_git_commit.rb', line 20

def self.author
  "ngutman"
end

.descriptionObject



12
13
14
# File 'lib/fastlane/actions/last_git_commit.rb', line 12

def self.description
  "Return last git commit hash, abbreviated commit hash, commit message and author"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/fastlane/actions/last_git_commit.rb', line 24

def self.is_supported?(platform)
  true
end

.return_valueObject



16
17
18
# File 'lib/fastlane/actions/last_git_commit.rb', line 16

def self.return_value
  "Returns the following dict: {commit_hash: \"commit hash\", abbreviated_commit_hash: \"abbreviated commit hash\" author: \"Author\", message: \"commit message\"}"
end

.run(params) ⇒ Object



4
5
6
# File 'lib/fastlane/actions/last_git_commit.rb', line 4

def self.run(params)
  Actions.last_git_commit_dict
end