Sha256: 4242e54c28829c53ec9217b8e81ea0cff49f6991bb2b4d2f75e79bbbd619a68d
Contents?: true
Size: 899 Bytes
Versions: 5
Compression:
Stored size: 899 Bytes
Contents
# frozen_string_literal: true require 'avm/with_application_stereotype' require 'eac_ruby_utils/core_ext' module Avm module Scms class Base enable_abstract_methods enable_simple_cache include ::Avm::WithApplicationStereotype abstract_methods :update, :valid? common_constructor :path do self.path = path.to_pathname end # @return [Avm::Scms::Commit,NilClass] def commit_if_change(_message = nil) raise_abstract_method __method__ end def name self.class.name.demodulize end # @return [Enumerable<Avm::Scms::Base>] def subs raise_abstract_method __method__ end def to_s name end private # @return [Avm::Scms::Base] def parent_scm_uncached ::Avm::Registry.scms.detect_by_path_optional(path.parent) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems