Sha256: 81e595c95c3fb695a9151fb492038f65d5c3ac23e8f39ba56e20b557d8e22b1b

Contents?: true

Size: 509 Bytes

Versions: 395

Compression:

Stored size: 509 Bytes

Contents

require 'puppet/module_tool'
require 'puppet/util'

module Puppet::ModuleTool::Tar
  require 'puppet/module_tool/tar/gnu'
  require 'puppet/module_tool/tar/mini'

  def self.instance
    if Puppet.features.minitar? && Puppet.features.zlib?
      Mini.new
    elsif Puppet::Util.which('tar') && ! Puppet::Util::Platform.windows?
      Gnu.new
    else
      #TRANSLATORS "tar" is a program name and should not be translated
      raise RuntimeError, _('No suitable tar implementation found')
    end
  end
end

Version data entries

395 entries across 395 versions & 2 rubygems

Version Path
puppet-6.29.0 lib/puppet/module_tool/tar.rb
puppet-6.29.0-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.29.0-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.29.0-universal-darwin lib/puppet/module_tool/tar.rb
puppet-6.28.0 lib/puppet/module_tool/tar.rb
puppet-6.28.0-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.28.0-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.28.0-universal-darwin lib/puppet/module_tool/tar.rb
puppet-6.27.0 lib/puppet/module_tool/tar.rb
puppet-6.27.0-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.27.0-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.27.0-universal-darwin lib/puppet/module_tool/tar.rb
puppet-6.26.0 lib/puppet/module_tool/tar.rb
puppet-6.26.0-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.26.0-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.26.0-universal-darwin lib/puppet/module_tool/tar.rb
puppet-6.25.1 lib/puppet/module_tool/tar.rb
puppet-6.25.1-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.25.1-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-6.25.1-universal-darwin lib/puppet/module_tool/tar.rb