Sha256: 3611590acd278b4356966c4d6fddecb1bdd43beb30aae16f8b2cc0613c6116bc

Contents?: true

Size: 706 Bytes

Versions: 36

Compression:

Stored size: 706 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

          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

36 entries across 36 versions & 2 rubygems

Version Path
avm-git-0.18.0 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.94.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
avm-git-0.17.0 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.86.5 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
avm-git-0.16.0 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.86.4 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.86.3 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
avm-git-0.15.0 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.86.2 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.84.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.83.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.82.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
avm-git-0.14.0 lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.81.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.80.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.79.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.78.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.77.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.77.0 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb
eac_tools-0.76.1 sub/avm-git/lib/avm/git/scms/git_sub_base/commit.rb