Sha256: 9b8aa1f7f1761d2b67f65559614d41a9c2d528e9ddfef5346fbbfd2cceb3e24c
Contents?: true
Size: 879 Bytes
Versions: 20
Compression:
Stored size: 879 Bytes
Contents
# frozen_string_literal: true require 'avm/scms/base' require 'eac_git/local' require 'eac_ruby_utils/core_ext' module Avm module Git module Scms class GitSubrepo < ::Avm::Scms::Base def commit_if_change(_message) nyi end def update git_subrepo.command('clean').execute! git_subrepo.command('pull').execute! end # @return [EacGit::Local] def git_repo @git_repo ||= ::EacGit::Local.find(path) end # @return [EacGit::Local::Subrepo] def git_subrepo @git_subrepo ||= git_repo.subrepo(subpath) end # @return [Pathname] def subpath path.expand_path.relative_path_from(git_repo.root_path.expand_path) end def valid? path.join('.gitrepo').file? end end end end end
Version data entries
20 entries across 20 versions & 2 rubygems