Class: Bozo::Hooks::GitCommitHashes
- Inherits:
-
Object
- Object
- Bozo::Hooks::GitCommitHashes
- Defined in:
- lib/bozo/hooks/git_commit_hashes.rb
Instance Method Summary collapse
Instance Method Details
#pre_prepare ⇒ Object
5 6 7 8 9 10 |
# File 'lib/bozo/hooks/git_commit_hashes.rb', line 5 def pre_prepare env['GIT_HASH'] = `git log -1 --format="%h"`.strip env['GIT_HASH_FULL'] = `git log -1 --format="%H"`.strip env['BUILD_VERSION'] = version env['BUILD_VERSION_FULL'] = build_version end |