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.86.5 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.86.4 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.86.3 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.16.0 lib/eac_git/local/commit/archive.rb
eac_tools-0.86.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.15.0 lib/eac_git/local/commit/archive.rb
eac_tools-0.84.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.84.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.84.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.83.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.82.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.81.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.80.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.79.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.78.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.77.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.77.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.76.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.76.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.75.2 sub/eac_git/lib/eac_git/local/commit/archive.rb