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.54.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.53.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.52.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.51.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.50.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.49.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.48.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.48.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.47.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.47.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.47.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.46.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.45.2 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.45.1 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.14.0 lib/eac_git/local/commit/archive.rb
eac_tools-0.45.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.44.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.43.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.42.0 sub/eac_git/lib/eac_git/local/commit/archive.rb
eac_tools-0.41.0 sub/eac_git/lib/eac_git/local/commit/archive.rb