Sha256: b77b3700afd7aec822311326c5b34e7da71f3ffb85cf63c2123b04dcb0a17344

Contents?: true

Size: 489 Bytes

Versions: 12

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

module Avm
  module EacWebappBase0
    class Deploy
      module Version
        VERSION_TARGET_PATH = 'VERSION'

        def version
          ([::Time.now, commit_sha1] + version_git_refs).join('|')
        end

        def version_git_refs
          git_remote_hashs.select { |_name, sha1| sha1 == commit_sha1 }.keys
                          .map { |ref| ref.gsub(%r{\Arefs/}, '') }.reject { |ref| ref == 'HEAD' }
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
avm-tools-0.74.1 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.74.0 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.73.0 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.72.0 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.71.0 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.70.2 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.70.1 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.70.0 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.69.3 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.69.2 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.69.1 lib/avm/eac_webapp_base0/deploy/version.rb
avm-tools-0.69.0 lib/avm/eac_webapp_base0/deploy/version.rb