Module: Egads::LocalHelpers
Overview
Some helper methods for all local commands
Instance Method Summary collapse
Instance Method Details
#sha ⇒ Object
4 5 6 |
# File 'lib/egads/local_helpers.rb', line 4 def sha @sha ||= run_with_code("git rev-parse --verify #{rev}").strip end |
#short_sha ⇒ Object
8 9 10 |
# File 'lib/egads/local_helpers.rb', line 8 def short_sha sha[0,7] end |