Class: Registry::Bzip2

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

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



198
199
200
# File 'lib/radiant/extension/script.rb', line 198

def filename
  @unpacked ? super : "#{self.name}.tar.bz2"
end

#unpackObject



202
203
204
205
206
# File 'lib/radiant/extension/script.rb', line 202

def unpack
  system "cd #{Dir.tmpdir}; bunzip2 #{self.filename}"
  @unpacked = true
  super
end