Sha256: 330eafe4739f4639ffaf307295e9654d0f677fdf4be2639dfda0495f3cdd0444

Contents?: true

Size: 434 Bytes

Versions: 178

Compression:

Stored size: 434 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::Util.which('tar') && ! Puppet::Util::Platform.windows?
      Gnu.new
    elsif Puppet.features.minitar? && Puppet.features.zlib?
      Mini.new
    else
      raise RuntimeError, 'No suitable tar implementation found'
    end
  end
end

Version data entries

178 entries across 178 versions & 2 rubygems

Version Path
puppet-retrospec-1.5.0 vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb
puppet-retrospec-1.4.1 vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb
puppet-retrospec-1.4.0 vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb
puppet-4.10.0 lib/puppet/module_tool/tar.rb
puppet-4.10.0-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.10.0-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.10.0-universal-darwin lib/puppet/module_tool/tar.rb
puppet-retrospec-1.3.2 vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb
puppet-4.9.4 lib/puppet/module_tool/tar.rb
puppet-4.9.4-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.9.4-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.9.4-universal-darwin lib/puppet/module_tool/tar.rb
puppet-retrospec-1.3.1 vendor/gems/puppet-4.5.2/lib/puppet/module_tool/tar.rb
puppet-4.9.3 lib/puppet/module_tool/tar.rb
puppet-4.9.3-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.9.3-x64-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.9.3-universal-darwin lib/puppet/module_tool/tar.rb
puppet-4.9.2 lib/puppet/module_tool/tar.rb
puppet-4.9.2-x86-mingw32 lib/puppet/module_tool/tar.rb
puppet-4.9.2-x64-mingw32 lib/puppet/module_tool/tar.rb