class Registry::Tarball
def filename
def filename "#{self.name}.tar" end
def unpack
def unpack output = nil cd(Dir.tmpdir) { output = `tar xvf #{filename}` } self.path = File.join(Dir.tmpdir, output.split(/\n/).first.split('/').first) end
def filename "#{self.name}.tar" end
def unpack output = nil cd(Dir.tmpdir) { output = `tar xvf #{filename}` } self.path = File.join(Dir.tmpdir, output.split(/\n/).first.split('/').first) end