class ActiveRecord::Snapshot::Bzip2

Public Class Methods

compress(path) click to toggle source
# 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) click to toggle source
# 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