Sha256: 77ab0cb8635d1fdb8c56208a04a01107a8ff76b83e769c25ef4725448f89e51d

Contents?: true

Size: 713 Bytes

Versions: 98

Compression:

Stored size: 713 Bytes

Contents

# frozen_string_literal: true

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

module Avm
  module Git
    module LauncherStereotypes
      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

98 entries across 98 versions & 2 rubygems

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