Sha256: bca35a34591cc0ca2c743c5d380bd7d0788e84bd68e17c004585e85125f1eab2

Contents?: true

Size: 741 Bytes

Versions: 156

Compression:

Stored size: 741 Bytes

Contents

# frozen_string_literal: true

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

156 entries across 156 versions & 4 rubygems

Version Path
eac_tools-0.80.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.79.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.78.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.77.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.77.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.76.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.76.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.75.2 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
avm-git-0.13.4 lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.75.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.75.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.74.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.74.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.73.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.72.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.70.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.70.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.69.1 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.69.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb
eac_tools-0.68.0 sub/avm-git/lib/avm/git/subrepo_check/show_result.rb