Class: Git::Changelog::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/git-changes/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.process!Object



9
10
11
# File 'lib/git-changes/cli.rb', line 9

def self.process!
  new.process
end

Instance Method Details

#processObject



2
3
4
5
6
7
# File 'lib/git-changes/cli.rb', line 2

def process
  @io = IO.popen("git log --summary --stat --no-merges --date=short") 
  parser = Git::Changelog::Parser.new(@io)
  parser.generate_changelog
  @io.close
end