could be just:
```ruby
     Dir.glob("#{@options[:dir]}/*.tar.gz").map do |file|
       tgz = Zlib::GzipReader.new(File.open(file, 'rb'))
       Archive::Tar::Minitar.unpack(tgz, @options[:dir])
       file.gsub(/\.tar\.gz$/,'')
     end
```