Sha256: d12aed7446835321a22586949e19b3c7e05a584464caab5ad1afce6d7e90d490

Contents?: true

Size: 821 Bytes

Versions: 69

Compression:

Stored size: 821 Bytes

Contents

# frozen_string_literal: true

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

module Avm
  module Git
    class SubrepoCheck
      require_sub __FILE__, include_modules: true
      enable_console_speaker
      enable_simple_cache

      BLANK_TEXT = 'BLANK'

      common_constructor :subrepo, :options

      def blank_text
        BLANK_TEXT
      end

      def check_remote?
        options.fetch(:check_remote) ? true : false
      end

      def fix_parent?
        options.fetch(:fix_parent) ? true : false
      end

      private

      def result_uncached
        return ::Avm::Result.error('Parent failed') if parent_result.error?
        return ::Avm::Result.error('Remote failed') if remote_result.error?

        ::Avm::Result.success('Parent and remote ok')
      end
    end
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

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