Class: Hashira::GitLog
- Inherits:
-
Object
- Object
- Hashira::GitLog
- Defined in:
- lib/hashira/git_log.rb
Constant Summary collapse
- LOG =
%w[log --no-renames --name-only --format=].freeze
Instance Method Summary collapse
- #counts ⇒ Object
-
#initialize(directory) ⇒ GitLog
constructor
A new instance of GitLog.
Constructor Details
#initialize(directory) ⇒ GitLog
Returns a new instance of GitLog.
6 7 8 |
# File 'lib/hashira/git_log.rb', line 6 def initialize(directory) @directory = directory end |
Instance Method Details
#counts ⇒ Object
10 |
# File 'lib/hashira/git_log.rb', line 10 def counts = output.split("\n").map(&:strip).reject(&:empty?).tally |