Class: ActiveRecord::Snapshot::Bzip2
- Inherits:
-
Object
- Object
- ActiveRecord::Snapshot::Bzip2
- Defined in:
- lib/active_record/snapshot/commands/bzip2.rb
Class Method Summary collapse
Class Method Details
.compress(path) ⇒ Object
4 5 6 7 |
# File 'lib/active_record/snapshot/commands/bzip2.rb', line 4 def self.compress(path) return false unless File.file?(path) system("nice bzip2 -z #{path}") end |
.decompress(path) ⇒ Object
9 10 11 12 |
# File 'lib/active_record/snapshot/commands/bzip2.rb', line 9 def self.decompress(path) return false unless File.file?(path) system("nice bunzip2 -f #{path}") end |