lib/shelly/cli/backup.rb in shelly-0.4.4 vs lib/shelly/cli/backup.rb in shelly-0.4.5

- old
+ new

@@ -128,18 +128,17 @@ say "Uploading #{archive}", :green connection = app.upload_database(archive) say "Uploading done", :green say "Importing database", :green app.import_database(kind, archive, connection["server"]) - say "Database imported successfully", :green rescue Client::ConflictException => e say_error "Cloud #{app} wasn't deployed properly. Cannot import database." end no_tasks do def compress(filename) archive_name = "#{::File.basename(filename)}-#{Time.now.to_i}.tar.bz2" - say "Compressing #{filename} into #{archive_name}", :green + say "Running: tar -cjf #{archive_name} #{filename}", :green system("tar -cjf #{archive_name} #{filename}") archive_name end end end