Class: RCheck::Headers::Commit
- Inherits:
-
Object
- Object
- RCheck::Headers::Commit
- Defined in:
- lib/rcheck/headers.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
16 |
# File 'lib/rcheck/headers.rb', line 16 def call() [cwd_commit_hash].compact end |
#cwd_commit_hash ⇒ Object
18 19 20 21 |
# File 'lib/rcheck/headers.rb', line 18 def cwd_commit_hash path = File. File.join(*%w(.git refs heads master)) File.read(path).chomp if File.file? path end |