Sha256: da63d592145363083ec55f114abb25ba11c1647ddd3ab70c8b2896c7affaff33

Contents?: true

Size: 710 Bytes

Versions: 2

Compression:

Stored size: 710 Bytes

Contents

# frozen_string_literal: true

require 'avm/git/launcher/warp_base'
require 'avm/git/launcher/sub_warp_base'

module Avm
  module Projects
    module Stereotypes
      class GitSubtree
        class Warp < ::Avm::Git::Launcher::WarpBase
          include ::Avm::Git::Launcher::SubWarpBase

          private

          def current_ref
            instance.cache_key("git_subtree.parent.#{cache_git.git.object('HEAD').sha}") do
              cache_git.subtree_split(to_parent_git_path)
            end
          end

          def source_instance
            parent_instance
          end

          def source_remote_name
            instance.project_name
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
avm-tools-0.141.0 lib/avm/projects/stereotypes/git_subtree/warp.rb
eac_tools-0.36.1 sub/avm-tools/lib/avm/projects/stereotypes/git_subtree/warp.rb