Sha256: 76a04494479fecde3064f75c74090d7d64eadbb6352db65fac1328fc18aff552

Contents?: true

Size: 773 Bytes

Versions: 70

Compression:

Stored size: 773 Bytes

Contents

# frozen_string_literal: true

require 'eac_launcher/git/base'
require 'eac_ruby_utils/core_ext'

module Avm
  module Git
    class SubrepoCheck
      module ShowResult
        def show_result
          out(subrepo.subpath.to_path.cyan)
          out_attr('parent', parent_result.label)
          run_fix_parent
          out_attr('remote', remote_result.label)
          out("\n")
        end

        def run_fix_parent
          return unless fix_parent?
          return unless parent_result.error?

          out('|Fixing...'.white)
          self.parent_hash = expected_parent_hash
          out_attr('new parent', parent_result.label)
        end

        def out_attr(key, value)
          out('|' + "#{key}=".white + value)
        end
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
avm-tools-0.99.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.98.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.97.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.96.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.95.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.94.3 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.94.2 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.94.1 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.94.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.93.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.92.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.91.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.90.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.89.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.88.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.87.1 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.87.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.86.0 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.85.1 lib/avm/git/subrepo_check/show_result.rb
avm-tools-0.85.0 lib/avm/git/subrepo_check/show_result.rb