Sha256: f90424bfb74f9b761a4c34a04f9b227c773396a920f2d81e90807844a2d32a8e

Contents?: true

Size: 815 Bytes

Versions: 26

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

require 'avm/scms/commit'
require 'avm/git/scms/git/commit'
require 'eac_ruby_utils/core_ext'

module Avm
  module Git
    module Scms
      class GitSubBase < ::Avm::Scms::Base
        class Commit < ::Avm::Scms::Commit
          common_constructor :scm, :parent_commit do
            # parent_commit.assert_argument(::Avm::Git::Scms::Git::Commit, 'parent_commit')
          end

          delegate :deploy_to_env_path, :fixup?, :id, :merge_with, :reword, :scm_file?, :subject,
                   :to_s, to: :parent_commit

          # @return [Array<Pathname>]
          def changed_files
            parent_commit.changed_files.map do |cf|
              cf.relative_path_from(scm.relative_path_from_parent_scm)
            end
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
eac_tools-0.67.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.66.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.65.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.65.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.64.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.63.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.62.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.62.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
avm-git-0.13.2 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.61.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.61.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.60.3 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.60.2 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.60.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.60.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.59.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.58.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.57.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.56.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.56.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb