Class: Registry::Tarball

Inherits:
Download show all
Defined in:
lib/radiant/extension/script.rb

Direct Known Subclasses

Bzip2, Gzip

Instance Attribute Summary

Attributes inherited from Installer

#name, #path, #url

Instance Method Summary collapse

Methods inherited from Download

#download, #initialize, #install

Methods inherited from Installer

#copy_to_vendor_extensions, #initialize, #install, #migrate, #update

Methods inherited from Action

#rake

Constructor Details

This class inherits a constructor from Registry::Download

Instance Method Details

#filenameObject



175
176
177
# File 'lib/radiant/extension/script.rb', line 175

def filename
  "#{self.name}.tar"
end

#unpackObject



179
180
181
182
# File 'lib/radiant/extension/script.rb', line 179

def unpack
  output = `cd #{Dir.tmpdir}; tar xvf #{filename}`
  self.path = File.join(Dir.tmpdir, output.split(/\n/).first.split('/').first)
end