Current File : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module_tool/tar.rb
require_relative '../../puppet/module_tool'
require_relative '../../puppet/util'

module Puppet::ModuleTool::Tar
  require_relative 'tar/gnu'
  require_relative '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
Site is undergoing maintenance

PACJA Events

Maintenance mode is on

Site will be available soon. Thank you for your patience!