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