Sha256: f978f389591a3ab8534219b6eb7fbcd4fdb0ebe185ef42f7c2b4011768fe73ed

Contents?: true

Size: 1.36 KB

Versions: 120

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Scms
    class Commit
      enable_abstract_methods

      # @return [Array<Pathname>]
      def changed_files
        raise_abstract_method __method__
      end

      def deploy_to_env_path(_target_env, _target_path)
        raise_abstract_method __method__
      end

      # @return [Boolean]
      def fixup?
        raise_abstract_method __method__
      end

      def id
        raise_abstract_method __method__
      end

      # @param other [Avm::Scms::Commit]
      # @return [Avm::Scms::Commit]
      def merge_with(_other)
        raise_abstract_method __method__
      end

      # @return [Array<Pathname>]
      def no_scm_changed_files
        changed_files.reject { |path| scm_file?(path) }
      end

      # @param new_message [String]
      def reword(_new_message)
        raise_abstract_method __method__
      end

      # @return [Array<Pathname>]
      def scm_changed_files
        changed_files.select { |path| scm_file?(path) }
      end

      # @param path [Pathname]
      # @return [TrueClass,FalseClass]
      def scm_file?(_path)
        raise_abstract_method __method__
      end

      # @return [String]
      def subject
        raise_abstract_method __method__
      end

      # @return [String]
      def to_s
        "#{subject} [#{id}]"
      end
    end
  end
end

Version data entries

120 entries across 120 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/scms/commit.rb
eac_tools-0.98.0 sub/avm/lib/avm/scms/commit.rb
avm-0.94.0 lib/avm/scms/commit.rb
eac_tools-0.94.0 sub/avm/lib/avm/scms/commit.rb
avm-0.93.0 lib/avm/scms/commit.rb
eac_tools-0.92.0 sub/avm/lib/avm/scms/commit.rb
avm-0.92.0 lib/avm/scms/commit.rb
eac_tools-0.91.0 sub/avm/lib/avm/scms/commit.rb
avm-0.90.1 lib/avm/scms/commit.rb
eac_tools-0.87.1 sub/avm/lib/avm/scms/commit.rb
avm-0.90.0 lib/avm/scms/commit.rb
eac_tools-0.87.0 sub/avm/lib/avm/scms/commit.rb
avm-0.89.0 lib/avm/scms/commit.rb
eac_tools-0.86.12 sub/avm/lib/avm/scms/commit.rb
avm-0.88.0 lib/avm/scms/commit.rb
eac_tools-0.86.11 sub/avm/lib/avm/scms/commit.rb
avm-0.87.0 lib/avm/scms/commit.rb
eac_tools-0.86.8 sub/avm/lib/avm/scms/commit.rb
avm-0.86.2 lib/avm/scms/commit.rb
eac_tools-0.86.7 sub/avm/lib/avm/scms/commit.rb