Class: Fastlane::Actions::GitReader
- Inherits:
-
Object
- Object
- Fastlane::Actions::GitReader
- Defined in:
- lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb
Instance Method Summary collapse
- #get_timestamp ⇒ Object
-
#initialize(git_path) ⇒ GitReader
constructor
A new instance of GitReader.
Constructor Details
#initialize(git_path) ⇒ GitReader
Returns a new instance of GitReader.
55 56 57 |
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 55 def initialize(git_path) @git = Git.open(git_path) end |
Instance Method Details
#get_timestamp ⇒ Object
59 60 61 62 63 |
# File 'lib/fastlane/plugin/flutter_version_manager/actions/flutter_version_manager_action.rb', line 59 def head = @git.object('HEAD') commit = @git.gcommit(head.sha) commit.date.to_i end |