Sha256: b422d9d153eee59a53ab22405514c2571ffac5eadf2867de265067ddede4e0f9

Contents?: true

Size: 544 Bytes

Versions: 21

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Stereotypes
    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
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
avm-tools-0.68.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.67.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.66.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.65.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.64.2 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.64.1 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.64.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.63.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.62.4 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.62.3 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.62.2 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.62.1 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.62.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.61.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.60.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.59.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.58.1 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.58.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.57.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb
avm-tools-0.56.0 lib/avm/stereotypes/eac_webapp_base0/deploy/version.rb