Sha256: c25a631663e519e203005643345cdb0cd99dc798f484d194d5f788c87e235714
Contents?: true
Size: 1.06 KB
Versions: 10
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'avm/patches/class/i18n' module Avm module Projects module Stereotypes class Git class Update require_sub __FILE__ enable_simple_cache enable_speaker common_constructor :instance delegate :git_repo, to: :instance def run clean_all selected_subrepos.map do |f| infov 'Subrepo', f ::EacRubyUtils::Speaker.context.on(::EacCli::Speaker.new(err_line_prefix: ' ')) do ::Avm::Projects::Stereotypes::Git::Update::Subrepo.new(self, f).run end end end def selected_subrepos_uncached git_repo.command('subrepo', '-q', 'status').execute!.split("\n").map(&:strip) .select(&:present?).map(&:to_pathname) end def clean_all infom 'Cleaning' git_repo.command('subrepo', 'clean', '--all').execute! end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems