Class: Registry::Bzip2
- 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
#file_utils, #rake, #tasks_include?
Constructor Details
This class inherits a constructor from Registry::Download
Instance Method Details
#filename ⇒ Object
234 235 236 |
# File 'lib/radiant/extension/script.rb', line 234 def filename @unpacked ? super : "#{self.name}.tar.bz2" end |
#unpack ⇒ Object
238 239 240 241 242 |
# File 'lib/radiant/extension/script.rb', line 238 def unpack cd(Dir.tmpdir) { system "bunzip2 #{self.filename}" } @unpacked = true super end |