lib/shelly/cli/backup.rb in shelly-0.1.24.pre2 vs lib/shelly/cli/backup.rb in shelly-0.1.24

- old
+ new

@@ -30,11 +30,11 @@ to_display << [backup.filename, "| #{backup.human_size}", "| #{backup.state.humanize}"] end say "Available backups:", :green say_new_line - print_table(to_display, :ident => 2) + print_table(to_display, :indent => 2) else say "No database backups available" end end @@ -68,10 +68,10 @@ cloudfile = Cloudfile.new unless kind || cloudfile.present? say_error "Cloudfile must be present in current working directory or specify database kind with:", :with_exit => false say_error "`shelly backup create DB_KIND`" end - app.request_backup(kind || cloudfile.clouds.find { |c| c.code_name == app.to_s }.backup_databases) + app.request_backup(kind || cloudfile.backup_databases(app)) say "Backup requested. It can take up to several minutes for " + "the backup process to finish.", :green rescue Client::ValidationException => e e.each_error { |error| say_error error, :with_exit => false } exit 1