Sha256: ef4bd09c047daae012b3d47e83ea41ba2859b84681a4addf6a7e31c0206b8ea0

Contents?: true

Size: 420 Bytes

Versions: 15

Compression:

Stored size: 420 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', hash).pipe(
            ::EacGit::Executables.tar.command('-xC', path)
          )
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
avm-tools-0.106.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb
avm-tools-0.105.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.7.3 lib/eac_git/local/commit/archive.rb
eac_git-0.7.2 lib/eac_git/local/commit/archive.rb
eac_git-0.7.1 lib/eac_git/local/commit/archive.rb
eac_git-0.7.0 lib/eac_git/local/commit/archive.rb
avm-tools-0.104.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb
avm-tools-0.103.1 vendor/eac_git/lib/eac_git/local/commit/archive.rb
avm-tools-0.103.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb
avm-tools-0.102.2 vendor/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.6.0 lib/eac_git/local/commit/archive.rb
avm-tools-0.102.1 vendor/eac_git/lib/eac_git/local/commit/archive.rb
avm-tools-0.102.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb
eac_git-0.5.0 lib/eac_git/local/commit/archive.rb
avm-tools-0.101.0 vendor/eac_git/lib/eac_git/local/commit/archive.rb