Module: Avm::EacWebappBase0::Instances::Deploy::Version
- Defined in:
- lib/avm/eac_webapp_base0/instances/deploy/version.rb
Constant Summary collapse
- VERSION_TARGET_PATH =
'VERSION'
Instance Method Summary collapse
Instance Method Details
#version ⇒ Object
10 11 12 |
# File 'lib/avm/eac_webapp_base0/instances/deploy/version.rb', line 10 def version ([::Time.now, commit_reference] + version_git_refs).join('|') end |
#version_git_refs ⇒ Object
14 15 16 17 |
# File 'lib/avm/eac_webapp_base0/instances/deploy/version.rb', line 14 def version_git_refs git_remote_hashs.select { |_name, sha1| sha1 == commit_reference }.keys .map { |ref| ref.gsub(%r{\Arefs/}, '') }.reject { |ref| ref == 'HEAD' } end |
#version_target_path ⇒ Object
19 20 21 |
# File 'lib/avm/eac_webapp_base0/instances/deploy/version.rb', line 19 def version_target_path VERSION_TARGET_PATH end |