PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module_tool/tar/ |
| Server: Linux server1.ngambekcore.com 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 04:00:07 EDT 2025 x86_64 IP: 159.198.77.92 |
| Dir : //opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module_tool/tar/gnu.rb |
require 'shellwords'
class Puppet::ModuleTool::Tar::Gnu
def unpack(sourcefile, destdir, owner)
sourcefile = File.expand_path(sourcefile)
destdir = File.expand_path(destdir)
Dir.chdir(destdir) do
Puppet::Util::Execution.execute("gzip -dc #{Shellwords.shellescape(sourcefile)} | tar xof -")
Puppet::Util::Execution.execute("find . -type d -exec chmod 755 {} +")
Puppet::Util::Execution.execute("find . -type f -exec chmod u+rw,g+r,a-st {} +")
Puppet::Util::Execution.execute("chown -R #{owner} .")
end
end
def pack(sourcedir, destfile)
Puppet::Util::Execution.execute("tar cf - #{sourcedir} | gzip -c > #{File.basename(destfile)}")
end
end