Sha256: 1497fc5fa32bf2d2db039dccc178c9a26028ff3d24e9deaa1d0e7b80edafebbc

Contents?: true

Size: 418 Bytes

Versions: 155

Compression:

Stored size: 418 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module EacGit
  class Local
    class Commit
      module Archive
        # @return [EacRubyUtils::Envs::Command]
        def archive_to_dir(path)
          path = path.to_pathname
          repo.command('archive', '--format=tar', id).pipe(
            ::EacGit::Executables.tar.command('-xC', path)
          )
        end
      end
    end
  end
end

Version data entries

155 entries across 155 versions & 3 rubygems

Version Path
eac_tools-0.61.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.61.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.60.3 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.60.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.60.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.60.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.59.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.58.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.57.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.56.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.56.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.7 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.6 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.5 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.14.1 lib/eac_git/local/commit/archive.rb
eac_tools-0.55.4 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.3 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.55.0 sub/eac_git/lib/eac_git/local/commit/archive.rb