Class: Registry::Tarball
- Defined in:
- lib/radiant/extension/script.rb
Instance Attribute Summary
Attributes inherited from Installer
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
Constructor Details
This class inherits a constructor from Registry::Download
Instance Method Details
#filename ⇒ Object
175 176 177 |
# File 'lib/radiant/extension/script.rb', line 175 def filename "#{self.name}.tar" end |
#unpack ⇒ Object
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 |