Class: Cease::Git
- Inherits:
-
Object
- Object
- Cease::Git
- Defined in:
- lib/cease/git.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(pwd: Pathname.pwd.to_s) ⇒ Git
constructor
A new instance of Git.
- #log ⇒ Object
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
.log ⇒ Object
5 6 7 |
# File 'lib/cease/git.rb', line 5 def self.log new.log end |
Instance Method Details
#log ⇒ Object
13 14 15 |
# File 'lib/cease/git.rb', line 13 def log @log ||= ::Git.open(pwd).log end |