lib/backup/database/sqlite.rb in backup-4.4.1 vs lib/backup/database/sqlite.rb in backup-5.0.0.beta.1
- old
+ new
@@ -1,7 +1,5 @@
-# encoding: utf-8
-
module Backup
module Database
class SQLite < Base
class Error < Backup::Error; end
@@ -26,31 +24,31 @@
# Performs the sqlitedump command and outputs the
# data to the specified path based on the 'trigger'
def perform!
super
- dump = "echo '.dump' | #{ sqlitedump_utility } #{ path }"
+ dump = "echo '.dump' | #{sqlitedump_utility} #{path}"
pipeline = Pipeline.new
- dump_ext = 'sql'
+ dump_ext = "sql"
pipeline << dump
if model.compressor
model.compressor.compress_with do |command, ext|
pipeline << command
dump_ext << ext
end
end
- pipeline << "cat > '#{ File.join( dump_path , dump_filename) }.#{ dump_ext }'"
+ pipeline << "cat > '#{File.join(dump_path, dump_filename)}.#{dump_ext}'"
pipeline.run
if pipeline.success?
log!(:finished)
else
raise Error,
- "#{ database_name } Dump Failed!\n" + pipeline.error_messages
+ "#{database_name} Dump Failed!\n" + pipeline.error_messages
end
end
end
end
end