Class: Cease::Git

Inherits:
Object
  • Object
show all
Defined in:
lib/cease/git.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pwd: Pathname.pwd.to_s) ⇒ Git

Returns a new instance of Git.



9
10
11
# File 'lib/cease/git.rb', line 9

def initialize(pwd: Pathname.pwd.to_s)
  @pwd = pwd
end

Class Method Details

.logObject



5
6
7
# File 'lib/cease/git.rb', line 5

def self.log
  new.log
end

Instance Method Details

#logObject



13
14
15
# File 'lib/cease/git.rb', line 13

def log
  @log ||= ::Git.open(pwd).log
end