Sha256: d266c0c3f0e7d2bd003bfa515b459f20037408e1e019218081154f7954036ab8

Contents?: true

Size: 781 Bytes

Versions: 170

Compression:

Stored size: 781 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Git
    class SubrepoCheck
      require_sub __FILE__, include_modules: true
      enable_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

170 entries across 170 versions & 4 rubygems

Version Path
avm-git-0.18.0 lib/avm/git/subrepo_check.rb
eac_tools-0.94.0 sub/avm-git/lib/avm/git/subrepo_check.rb
avm-git-0.17.0 lib/avm/git/subrepo_check.rb
eac_tools-0.86.5 sub/avm-git/lib/avm/git/subrepo_check.rb
avm-git-0.16.0 lib/avm/git/subrepo_check.rb
eac_tools-0.86.4 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.86.3 sub/avm-git/lib/avm/git/subrepo_check.rb
avm-git-0.15.0 lib/avm/git/subrepo_check.rb
eac_tools-0.86.2 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.84.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.83.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.82.0 sub/avm-git/lib/avm/git/subrepo_check.rb
avm-git-0.14.0 lib/avm/git/subrepo_check.rb
eac_tools-0.81.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.80.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.79.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.78.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.77.1 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.77.0 sub/avm-git/lib/avm/git/subrepo_check.rb
eac_tools-0.76.1 sub/avm-git/lib/avm/git/subrepo_check.rb